Viitor_autofs/etc/event.d/autofs

22 lines
498 B
Plaintext
Raw Normal View History

start on started mountfs
stop on stopping mountfs
console output
pre-start script
source /etc/event.d/functions
source /etc/event.d/autofs_function
source /etc/sysconfig/autofstime
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
fi
fi
end script
post-stop script
kill `ps -ef|grep automount|grep file|awk '{print $2}'`
end script