FS#17129 - [openntpd] doesn't start when /var/run/openntpd is deleted (PATCH)

Attached to Project: Community Packages
Opened by Johannes Dewender (JonnyJD) - Friday, 13 November 2009, 22:34 GMT
Last edited by Dan Griffiths (Ghost1227) - Saturday, 14 November 2009, 00:09 GMT
Task Type Bug Report
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


/var/run [...] is valid until the system is next booted.
So deleting /var/run/* on every boot or having this as tmpfs (like I do) is okay.

However openntpd fails when /var/run/openntpd is missing with:

fatal: stat: No such file or directory
dispatch_imsg in main: pipe closed
Lost child: child exited

This can easily be fixed with testing and creating /var/run/openntpd in /etc/rc.d/openntpd
I will attach a patch.

Additional info:
* package version(s)
openntp 3.9p
* config and/or log files etc.
didn't change the default configuration of openntpd

Steps to reproduce:
(/etc/rc.d/openntpd stop)
rm -r /var/run/openntpd
/etc/rc.d/openntpd start

I want to note, that a manual /usr/sbin/ntpd works, but "/usr/sbin/ntpd -s" not.
See default /etc/config.d/openntdp.
This task depends upon

Closed by  Dan Griffiths (Ghost1227)
Saturday, 14 November 2009, 00:09 GMT
Reason for closing:  Implemented