mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
more portability tweaks in the init script
(This used to be ctdb commit 83a1c79e95af93a9ccfe78556ac5692c0315a3e4)
This commit is contained in:
parent
bc6ec7d0cf
commit
b9973e1d3e
@ -25,6 +25,12 @@ elif [ -f /etc/rc.d/init.d/functions ] ; then
|
||||
. /etc/rc.d/init.d/functions
|
||||
fi
|
||||
|
||||
[ -f /etc/rc.status ] && {
|
||||
. /etc/rc.status
|
||||
rc_reset
|
||||
LC_ALL=en_US.UTF-8
|
||||
}
|
||||
|
||||
# Avoid using root's TMPDIR
|
||||
unset TMPDIR
|
||||
|
||||
@ -69,7 +75,7 @@ start() {
|
||||
echo -n $"Starting ctdbd service: "
|
||||
case $init_style in
|
||||
suse)
|
||||
startproc ctdbd $CTDB_OPTIONS
|
||||
startproc /usr/sbin/ctdbd $CTDB_OPTIONS
|
||||
rc_status -v
|
||||
;;
|
||||
redhat)
|
||||
|
Loading…
x
Reference in New Issue
Block a user