[Pkg-systemd-maintainers] Bug#738548: systemd support

Michael Biebl biebl at debian.org
Mon Feb 10 15:28:09 GMT 2014


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: pkg-systemd-maintainers at lists.alioth.debian.org
> Usertags: systemd-units
> X-Debbugs-CC: pkg-systemd-maintainers at lists.alioth.debian.org
> 
> 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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140210/ace4803a/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list