1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-26 18:50:30 +03:00

Eventscripts - remove some more absolute paths to commands.

Signed-off-by: Martin Schwenke <martin@meltin.net>

(This used to be ctdb commit f5b7cb03aaf19fb4b12fc3f0c14d98ee2d7b0798)
This commit is contained in:
Martin Schwenke 2011-08-04 17:14:11 +10:00
parent 8026b3ce5a
commit b0e7237653
4 changed files with 7 additions and 7 deletions

View File

@ -33,10 +33,10 @@ update_config_from_tdb() {
case "$1" in
init)
# make sure we have a blank state directory for the scripts to work with
/bin/rm -rf $CTDB_VARDIR/state
/bin/mkdir -p $CTDB_VARDIR/state || {
rm -rf $CTDB_VARDIR/state
mkdir -p $CTDB_VARDIR/state || {
ret=$?
echo "/bin/mkdir -p $CTDB_VARDIR/state - failed - $ret"
echo "mkdir -p $CTDB_VARDIR/state - failed - $ret"
exit $ret
}
;;

2
ctdb/config/events.d/20.multipathd Normal file → Executable file
View File

@ -78,7 +78,7 @@ case "$1" in
startup)
# create a state directory to keep/track the multipath device
# state
/bin/mkdir -p $CTDB_VARDIR/state/multipathd
mkdir -p $CTDB_VARDIR/state/multipathd
exit 0
;;

View File

@ -32,7 +32,7 @@ loadconfig
start_samba() {
# create the state directory for samba
/bin/mkdir -p $CTDB_VARDIR/state/samba
mkdir -p $CTDB_VARDIR/state/samba
# make sure samba is not already started
[ "$CTDB_MANAGES_SAMBA" = "yes" ] && {

View File

@ -2,8 +2,8 @@
# script to manage nfs in a clustered environment
start_nfs() {
/bin/mkdir -p $CTDB_VARDIR/state/nfs
/bin/mkdir -p $CTDB_VARDIR/state/statd/ip
mkdir -p $CTDB_VARDIR/state/nfs
mkdir -p $CTDB_VARDIR/state/statd/ip
startstop_nfs stop
startstop_nfs start
set_proc "sys/net/ipv4/tcp_tw_recycle" 1