Help with startup commands

As part of my NTP testing to start my currently jury rigged NTP server I need to issue the following commands

./storage/.opt/sbin/chronyd -f /storage/.opt/etc/chrony/chrony.conf
gpsd -Gn tcp://192.168.1.107:5555

But I am not sure how to either add them into an autostart.sh script or if I should add them as crontab entries, could anyone advise?

Stuart.

The easily would be to add into /storage/.config/autostart.sh file

/opt/sbin/chronyd -f /opt/etc/chrony/chrony.conf
/opt/sbin/gpsd -Gn tcp://192.168.1.107:5555

But I think when you install chrony and gpsd both services should already start automatically? You can see both start scripts in /opt/etc/init.d. Maybe you just need to setup correctly.

1 Like

@vpeter Thanks, had a total blind spot trying to get that working. After a few tries and because the commands need to bring up chrony and then gpsd after all the networking is up and running the best solution was to kill the entries in /opt/etc/init.d and then run them from autostart.sh

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.