[Pkg-systemd-maintainers] systemd support for amavisd-new

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sat Feb 8 01:33:00 GMT 2014


On Sat, Feb 08, 2014 at 01:17:13AM +0100, Christian Dröge wrote:
> diff -Nru amavisd-new-2.8.0/debian/amavisd-new.amavis.service amavisd-new-2.8.0/debian/amavisd-new.amavis.service
> --- amavisd-new-2.8.0/debian/amavisd-new.amavis.service	1970-01-01 01:00:00.000000000 +0100
> +++ amavisd-new-2.8.0/debian/amavisd-new.amavis.service	2014-02-08 00:46:33.000000000 +0100
> @@ -0,0 +1,13 @@
> +[Unit]
> +Description=Interface between MTA and virus scanner/content filters
> +After=network.target
> +
> +[Service]
> +PIDFile=/run/amavis/amavisd.pid
> +ExecStart=/usr/sbin/amavisd-new foreground
> +ExecReload=/usr/sbin/amavisd-new reload
> +ExecStopPost=-/usr/bin/find /var/lib/amavis -maxdepth 1 -name 'amavis-*' -type d -exec rm -rf "{}" \;
You can just day -delete instead of invoking rm.

> +ExecStopPost=-/usr/bin/find /var/lib/amavis/tmp -maxdepth 1 -name 'amavis-*' -type d -exec rm -rf "{}" \;
> +
> +[Install]
> +WantedBy=multi-user.target
> diff -Nru amavisd-new-2.8.0/debian/amavisd-new.amavis.tmpfile amavisd-new-2.8.0/debian/amavisd-new.amavis.tmpfile
> --- amavisd-new-2.8.0/debian/amavisd-new.amavis.tmpfile	1970-01-01 01:00:00.000000000 +0100
> +++ amavisd-new-2.8.0/debian/amavisd-new.amavis.tmpfile	2014-02-08 01:08:43.000000000 +0100
> @@ -0,0 +1 @@
> +d	/var/run/amavis			0755	amavis amavis
/var still here.

Zbyszek




More information about the Pkg-systemd-maintainers mailing list