• Edited

Please provide your frontend file of your oneshot service (and its name) and provide the output of the following command

# 66 status -g openntpd

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 )

Upon some experimentation, it seems like the problem with the one-shot seems not to be with either the one-shot service or the script it launches: in my previous install I had hackily hacked another hacky script somewhere to make the one-shot's function possible, and I had completely mis-applied that other script in my current setup, and now that I have fixed that other script, things seem to function normally. It looks like my first problem is therewith moot. Sorry to send you puzzling.

My second question, how I can delay openntpd starting until the network is up, is still open.

Your rclite frontend file should be:

[main]
@type = oneshot
@version = 0.0.1
@description = "rc lite, after-boot rc"
@user = ( root )

[start]
@build = custom
@execute = (#!/usr/bin/bash 
/etc/rc.sh )

For your network, make a copy of the openntpd frontend file at /etc/66/service and add the field @depends=(dhcpcd) at the [main] section, then reconfigure it

# 66 reconfigure opennptd

It should start after the dhcpcd service.

Please consider to mark this thread solved and open a new one if you have any furthers question as the original theme of the thread is now fixed

Thank you for your help.

I would change the title by adding 'solved', but I can't seem to edit the title of the first post.

eric changed the title to Accidental migration[solved) .
eric changed the title to [SOLVED] Accidental migration .

Powered by Obarun