Hi, Am 10.02.2014 15:29, schrieb Christian Dröge: > Package: amavisd-new > Version: 1:2.7.1-2 > Severity: wishlist > Tags: patch > User: [email protected] > Usertags: systemd-units > X-Debbugs-CC: [email protected] > > Hi, > > the attached patch adds a systemd service file for the main amavisd-new > daemon. There are some slight changes in comparison to the init script: > * the daemon will start, if there are *.disabled files around for > configuration files (this was seemingly introduced in 2006, because of a > configuration change, so I guess this is probably not needed anymore) > * the tmp files will be deleted before the start of amavis > > The patch was tested against the current git version.
> @@ -7,8 +7,10 @@
> dh $@
>
> override_dh_installinit:
> + dh_systemd_enable
> dh_installinit --name=amavis
> dh_installinit --name=amavisd-snmp-subagent
> + dh_systemd_start
My suggestion would be to use the dh addon like this.
dh $@ --with systemd
this will automatically insert dh_systemd_enable and dh_systemd_start at
the right places.
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

