To avoid confusion: I got openntpd to run properly by sending it SIGKILL after it started being obtuse, and the newly automatically started instance works nicely.
Name : openntpd
Version : 0.7.0
In tree : global
Status : enabled, up (pid 965 pgid 965) 42268 seconds
Type : classic
Description : ntpd daemon
Part of : None
Notify : 0
Max death : 5
Earlier : 0
Source : /usr/share/66/service/openntpd
Live : /run/66/scandir/0/openntpd
Dependencies : \
└─openntpd-log (pid=950, state=Enabled, type=classic, tree=global)
Required by : \
└─None
Contents : \
└─None
Optional dependencies : None
Start script :
#!/usr/bin/execlineb -P
/usr/bin/fdmove -c 2 1
execl-envfile -v4 /etc/66/conf/openntpd/version
/usr/bin/execl-toc -d /var/empty/openntpd
/usr/bin/execl-toc -d ${SocketDir}
/usr/bin/execl-cmdline -s { /usr/bin/ntpd ${Args} }
Stop script :
#!/usr/bin/execlineb -P
/usr/bin/fdmove -c 2 1
execl-envfile -v4 /etc/66/conf/openntpd/version
/usr/bin/s6-rmrf ${Socket}
Environment source : /etc/66/conf/openntpd/0.7.0
Environment file : environment variables from: /etc/66/conf/openntpd/0.7.0/.openntpd
Args=!-d
SocketDir=!/run/openntpd
Socket=!${SocketDir}/openntpd.sock
environment variables from: /etc/66/conf/openntpd/0.7.0/openntpd
Args=!-d
SocketDir=!/run/openntpd
Socket=!${SocketDir}/openntpd.sock
Log name : openntpd-log
Log destination : /var/log/66/openntpd
Log file :
peer 213.136.0.252 now invalid
peer 162.159.200.1 now invalid
could not parse "0.nl.pool.ntp.org": System error
peer 167.99.42.106 now invalid
could not parse "0.nl.pool.ntp.org": System error
peer 162.159.200.1 now invalid
could not parse "0.nl.pool.ntp.org": System error
peer 162.159.200.123 now valid
peer 108.61.164.200 now valid
sendto: Network is unreachable
adjusting local clock by 20.401208s
sendto: Network is unreachable
adjusting local clock by 20.369909s
sendto: Network is unreachable
sendto: Network is unreachable
peer 94.198.159.16 now valid
peer 94.198.159.16 now invalid
peer 178.239.19.58 now valid
adjusting local clock by 20.368996s
adjusting local clock by 20.238251s
The frontend of my oneshot is very simple:
[lijster@lijsterbes ~]$ cat /usr/lib/66/service/rclite
[main]
@type = oneshot
@version = 0.0.1
@description = "rc lite, after-boot rc"
@user = ( root )
@options = ( log )
[start]
@build = auto
@execute = ( bash /etc/rc.sh )