Package: chrony
Version: 1.24-2
Severity: serious

Oh dear....

Setting up chrony (1.24-2) ...
Starting /usr/sbin/chronyd...
/usr/sbin/chronyd failed to start.
invoke-rc.d: initscript chrony, action "start" failed.
dpkg: error processing chrony (--configure):
 subprocess installed post-installation script returned error exit status 1


I think I've found the source of the problem: it is the use of "pidof"
in the init.d script.  If the program fails to start,
start-stop-daemon will complain.  But pidof is sometimes too fast for
chronyd, or something like that, perhaps due to the cloning of the
chronyd process: on my system (a notebook PC), running the command

/usr/sbin/chronyd; pidof /usr/sbin/chronyd; pidof /usr/sbin/chrondy

sometimes outputs one process id, sometimes two.

So either running sleep 1 before pidof should fix this, or better
perhaps not to run pidof at all.

   Julian



-- 
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