Control: tags -1 = patch

Chris,

Thanks very much.

I suggest the attached. I see no problem just dropping the inetd check. I have
left the user:group config in.

I hope I have interpreted your intentions correctly, do say if not.

Best wishes

Mark

[Unit]
Description=APT package caching proxy
Documentation=man:apt-cacher(8)
After=network.target
ConditionPathExists=/usr/sbin/apt-cacher

[Service]
Type=forking
RuntimeDirectory=apt-cacher
PIDFile=/run/apt-cacher/apt-cacher.pid

User=www-data
Group=www-data

Environment=EXTRAOPT=
EnvironmentFile=-/etc/default/apt-cacher

ExecStart=/usr/sbin/apt-cacher -R 3 -d -p /run/apt-cacher/apt-cacher.pid 
$EXTRAOPT
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/usr/bin/kill $MAINPID
ExecStopPost=-/usr/share/apt-cacher/libcurl.pl EXIT

KillMode=process

[Install]
WantedBy=multi-user.target

Reply via email to