Viitor_upstartaddon/etc/event.d/sendmail-helper

20 lines
345 B
Plaintext
Raw Permalink Normal View History

# rc - runlevel compatibility
#
# This task guesses what the "default runlevel" should be and starts the
# appropriate script.
start on started syslogd
stop on stopping syslogd
console logged
pre-start script
if [ -f /etc/mail/sendmail.cf ]; then
initctl emit mailstart &
fi
end script
post-stop script
initctl emit mailstop
end script