The proposed patch does not seem to work for "restart", e.g.

endon:~# /etc/init.d/apt-cacher start
Starting Apt-Cacher: apt-cacher.
endon:~# ps -ef | grep apt
www-data  4008     1  0 21:43 pts/5    00:00:00 /usr/bin/perl
/usr/sbin/apt-cacher -R 3 -d -p /var/run/apt-cacher.pid
root      4010  3287  0 21:43 pts/5    00:00:00 grep apt
endon:~# echo `cat /var/run/apt-cacher.pid`
4008

endon:~# /etc/init.d/apt-cacher restart
Restarting Apt-Cacher: apt-cacher.
endon:~# ps -ef | grep apt
root      4018  3287  0 21:43 pts/5    00:00:00 grep apt
endon:~# echo `cat /var/run/apt-cacher.pid`
4008

The restart kills off the old process, but does not start a new one.


Also the "stop" (following a successful start) does not remove the PID
file - is this normal?

endon:~# ps -ef | grep apt
www-data  4026     1  0 21:44 pts/5    00:00:00 /usr/bin/perl
/usr/sbin/apt-cacher -R 3 -d -p /var/run/apt-cacher.pid
root      4032  3287  0 21:44 pts/5    00:00:00 grep apt
endon:~# echo `cat /var/run/apt-cacher.pid`
4026
endon:~# /etc/init.d/apt-cacher stop
Stopping Apt-Cacher: apt-cacher.
endon:~# ps -ef | grep apt
root      4039  3287  0 21:45 pts/5    00:00:00 grep apt
endon:~# echo `cat /var/run/apt-cacher.pid`
4026


(all tested on apt-cacher 1.6.4)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to