PIDFILE Check auf CheckPid umgestellt

git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_autofs@6199 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2011-08-19 06:52:09 +00:00
parent f33a6e7d72
commit a45fe5c4f1
2 changed files with 2 additions and 25 deletions

View File

@ -11,18 +11,7 @@ console output
pre-start script pre-start script
source /etc/init/functions source /etc/init/functions
if grep automount /etc/nsswitch.conf|grep -q nis; then if grep automount /etc/nsswitch.conf|grep -q nis; then
if [ -f /var/run/autofs/automount_nis.pid ]; then /sbin/CheckPid /var/run/autofs/automount_nis.pid
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 else
exit 10 exit 10
fi fi

View File

@ -11,19 +11,7 @@ console none
pre-start script pre-start script
source /etc/init/functions source /etc/init/functions
if [ -f /etc/sysconfig/auto.master ] && grep automount /etc/nsswitch.conf|grep -q files; then if [ -f /etc/sysconfig/auto.master ] && grep automount /etc/nsswitch.conf|grep -q files; then
if [ -f /var/run/autofs/automount_files.pid ]; then CheckPid /var/run/autofs/automount_files.pid
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 else
exit 10 exit 10
fi fi