From a45fe5c4f1daf8caf25330cf9708c220c6d49a5a Mon Sep 17 00:00:00 2001 From: kueller Date: Fri, 19 Aug 2011 06:52:09 +0000 Subject: [PATCH] PIDFILE Check auf CheckPid umgestellt git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_autofs@6199 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init/autofs-nis.conf | 13 +------------ etc/init/autofs.conf | 14 +------------- 2 files changed, 2 insertions(+), 25 deletions(-) diff --git a/etc/init/autofs-nis.conf b/etc/init/autofs-nis.conf index 7a51710..3cfdce9 100644 --- a/etc/init/autofs-nis.conf +++ b/etc/init/autofs-nis.conf @@ -11,18 +11,7 @@ console output pre-start script source /etc/init/functions if grep automount /etc/nsswitch.conf|grep -q nis; then - 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 + /sbin/CheckPid /var/run/autofs/automount_nis.pid else exit 10 fi diff --git a/etc/init/autofs.conf b/etc/init/autofs.conf index ef63de1..acd3b25 100644 --- a/etc/init/autofs.conf +++ b/etc/init/autofs.conf @@ -11,19 +11,7 @@ console none pre-start script source /etc/init/functions if [ -f /etc/sysconfig/auto.master ] && grep automount /etc/nsswitch.conf|grep -q files; then - 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 + CheckPid /var/run/autofs/automount_files.pid else exit 10 fi