Viitor_upstartaddon/etc/event.d/autofs
kueller 2f620d58be Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_upstartaddon@5933 504e572c-2e33-0410-9681-be2bf7408885
2011-01-03 10:48:06 +00:00

20 lines
442 B
Plaintext

start on started mountfs
stop on stopping mountfs
console output
pre-start script
source /etc/init.d/functions
if grep automount /etc/nsswitch.conf 2>/dev/null|\
grep files &>/dev/null; then
if [ -f /etc/sysconfig/auto.master ]; then
cat /etc/sysconfig/auto.master|initautomount files file >>/tmp/autofs.log
fi
fi
end script
post-stop script
kill `ps -ef|grep automount|grep file|awk '{print $2}'`
end script