diff --git a/clamav-milter.upstart b/clamav-milter.upstart index 7d14046..02d7080 100644 --- a/clamav-milter.upstart +++ b/clamav-milter.upstart @@ -6,11 +6,9 @@ ### Uncomment these lines when you want clamav-milter to be a milter ### for a remotely running MTA -#start on starting local +#start on runlevel [345] and starting local -stop on (runlevel 0 or - runlevel 1 or - runlevel 6) +stop on runlevel [!345] respawn exec /usr/sbin/clamav-milter -c /etc/mail/clamav-milter.conf --nofork=yes diff --git a/clamd.scan.upstart b/clamd.scan.upstart index add1e4f..cb20b29 100644 --- a/clamd.scan.upstart +++ b/clamd.scan.upstart @@ -6,11 +6,9 @@ ### Uncomment this line when you want clamd.scan to be a generic ### scanner service -#start on starting local +#start on runlevel [345] and starting local -stop on (runlevel 0 or - runlevel 1 or - runlevel 6) +stop on runlevel [!345] respawn exec /usr/sbin/clamd -c /etc/clamd.d/scan.conf --nofork=yes