diff options
Diffstat (limited to 'ctdb/config/statd-callout')
-rwxr-xr-x | ctdb/config/statd-callout | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ctdb/config/statd-callout b/ctdb/config/statd-callout index a9c2e3dfba5..94bd2dd7fbd 100755 --- a/ctdb/config/statd-callout +++ b/ctdb/config/statd-callout @@ -1,5 +1,8 @@ #!/bin/sh +# This must run as root as CTDB tool commands need to access CTDB socket +[ $(id -u) -eq 0 ] || exec sudo "$0" "$@" + # this script needs to be installed so that statd points to it with the -H # command line argument. The easiest way to do that is to put something like this in # /etc/sysconfig/nfs: |