Bug#460886: cron: Fails to stop because of incorrect .pid file name
2008/1/15, Frans Pop <[EMAIL PROTECTED]>: > Seems like the error is in this line: > PIDFILE=/var/run/cron.pid > which should probably be > PIDFILE=/var/run/crond.pid Aggh a typo. I hate that. I will fix that ASAP (i.e. today) > Which makes me wonder if > [ -e /etc/cron.pid ] && PIDFILE=/etc/cron.pid > should also possibly be > [ -e /etc/crond.pid ] && PIDFILE=/etc/crond.pid > ? This is not actually a typo, is copied verbatim from the code, but forced the typo I introduced in the proper PIDFILE definition above. Regards Javier > > Cheers, > FJP > > -- System Information: > Debian Release: lenny/sid > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: amd64 (x86_64) > > Kernel: Linux 2.6.24-rc7 (SMP w/2 CPU cores) > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/bash > > Versions of packages cron depends on: > ii adduser 3.105 add and remove users and groups > ii debianutils 2.28.2 Miscellaneous utilities specific > t > ii libc62.7-6 GNU C Library: Shared libraries > ii libpam0g 0.99.7.1-5 Pluggable Authentication Modules > l > ii libselinux1 2.0.15-2+b1 SELinux shared libraries > ii lsb-base 3.1-24 Linux Standard Base 3.1 init > scrip > > Versions of packages cron recommends: > ii exim4 4.68-2 meta-package to ease Exim MTA > (v4) > ii exim4-daemon-light [mail-tran 4.68-2 lightweight Exim MTA (v4) daemon > > -- no debconf information > > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#460886: cron: Fails to stop because of incorrect .pid file name
Package: cron Version: 3.0pl1-102 Severity: serious This is a bit of a follow-up to #460514. The cron init script fails when called with 'stop': $ ps ax | grep cron 3562 ?Ss 0:00 /usr/sbin/cron $ cat /var/run/crond.pid 3562 $ sudo /etc/init.d/cron stop Stopping periodic command scheduler: crond failed! [EMAIL PROTECTED]:~$ sudo /etc/init.d/cron start Starting periodic command scheduler: crond/usr/sbin/cron: can't lock /var/run/crond.pid, otherpid may be 3562: Resource temporarily unavailable failed! A run with 'set -x' in the init script shows that the following command fails with exit code 1: start-stop-daemon --stop --quiet --pidfile /var/run/cron.pid --name cron Seems like the error is in this line: PIDFILE=/var/run/cron.pid which should probably be PIDFILE=/var/run/crond.pid Which makes me wonder if [ -e /etc/cron.pid ] && PIDFILE=/etc/cron.pid should also possibly be [ -e /etc/crond.pid ] && PIDFILE=/etc/crond.pid ? Cheers, FJP -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24-rc7 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages cron depends on: ii adduser 3.105 add and remove users and groups ii debianutils 2.28.2 Miscellaneous utilities specific t ii libc62.7-6 GNU C Library: Shared libraries ii libpam0g 0.99.7.1-5 Pluggable Authentication Modules l ii libselinux1 2.0.15-2+b1 SELinux shared libraries ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip Versions of packages cron recommends: ii exim4 4.68-2 meta-package to ease Exim MTA (v4) ii exim4-daemon-light [mail-tran 4.68-2 lightweight Exim MTA (v4) daemon -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]