Artix Linux Forum

Init systems => S6 => Topic started by: Geko on 29 September 2023, 09:47:06

Title: How to enable "openntpd-s6"
Post by: Geko on 29 September 2023, 09:47:06
echo Hello,

Since I have removed my computer battery I should update the date manualy at every starts :(.
I use s6 software to init.
I tried to install with pacman ntp-s6, then openntpd-s6 and nothing changed...

Should I enable openntpd-s6 after instlling? and how? I wounder to know...
Title: Re: How to enable "openntpd-s6"
Post by: strange on 30 September 2023, 19:12:00
To start a service at boot, create a file with the service name in /etc/s6/adminsv/default/.
To start and stop a service, use s6-rc start <service> and s6-rc stop <service>.
In the case of OpenNTPd, the service name is openntpd. Pretty straight-forward.
Refer to the wiki: https://wiki.artixlinux.org/Main/S6#Updating_bundle_contents