Compare commits
No commits in common. "v963" and "v962" have entirely different histories.
@ -11,7 +11,18 @@ console output
|
||||
pre-start script
|
||||
source /etc/init/functions
|
||||
if grep automount /etc/nsswitch.conf|grep -q nis; then
|
||||
/sbin/CheckPid /var/run/autofs/automount_nis.pid
|
||||
if [ -f /var/run/autofs/automount_nis.pid ]; then
|
||||
if ps -ef|\
|
||||
grep automount |\
|
||||
grep nis |\
|
||||
awk '{print $2}'|\
|
||||
grep -q `cat /var/run/autofs/automount_nis.pid`; then
|
||||
echo -n "Automount already running"
|
||||
exit 10
|
||||
else
|
||||
rm /var/run/autofs/automount_nis.pid
|
||||
fi
|
||||
fi
|
||||
else
|
||||
exit 10
|
||||
fi
|
||||
|
@ -11,7 +11,19 @@ console none
|
||||
pre-start script
|
||||
source /etc/init/functions
|
||||
if [ -f /etc/sysconfig/auto.master ] && grep automount /etc/nsswitch.conf|grep -q files; then
|
||||
CheckPid /var/run/autofs/automount_files.pid
|
||||
if [ -f /var/run/autofs/automount_files.pid ]; then
|
||||
if ps -ef|\
|
||||
grep automount |\
|
||||
grep nis |\
|
||||
awk '{print $2}'|\
|
||||
grep -q `cat /var/run/autofs/automount_files.pid`; then
|
||||
echo "Automount already running - not started"
|
||||
exit 10
|
||||
else
|
||||
echo -n "Removing old files"
|
||||
rm /var/run/autofs/automount_files.pid
|
||||
fi
|
||||
fi
|
||||
else
|
||||
exit 10
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user