On Sun, May 31, 2015 at 11:53:52AM +0200, Robert Luberda wrote:
> diff --git a/init.d/apt-cacher b/init.d/apt-cacher
>   index 2c38b7f..46500f9 100755
>   --- a/init.d/apt-cacher
>   +++ b/init.d/apt-cacher
>   @@ -15,7 +15,8 @@
>    DESC="Apt-Cacher"
>    NAME=apt-cacher
>    DAEMON=/usr/sbin/$NAME
>   -PIDFILE=/var/run/$NAME/$NAME.pid
>   +PIDDIR=/var/run/$NAME
>   +PIDFILE=$PIDDIR/$NAME.pid
>    SCRIPTNAME=/etc/init.d/$NAME
> 
>    # Gracefully exit if the package has been removed.
>   @@ -33,7 +34,12 @@ fi
>    #      Function that starts the daemon/service.
>    #
>    d_start() {
>   -
>   +    # apt-cacher needs $PIDDIR, but is not able to create it in the
> inetd mode
>   +    if test ! -d "$PIDDIR"; then
>   +       mkdir -m 755 "$PIDDIR"
>   +       chown www-data:www-data "$PIDDIR"

Sorry, the other thing I meant to add is that setting the user:group here could
break installations where admins have changed the user or group in
apt-cacher.conf.

Mark


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to