Please ship a systemd service file with the package. It is required to start ntp with systemd and should not interfere on non-systemd systems. Reproducible: Always
Created attachment 337502 [details] ntp.service Example for ntp.service, taken from http://en.gentoo-wiki.com/wiki/Systemd#ntpd
Created attachment 337504 [details] ntp-client.service (I don't know if it's appropriate but the same is required for net-misc/ntpclient that is currenty looking for a maintainer.)
There is timedatectl, although it doesn't seem to be able to sync on a certain interval unless you do it by cron but that doesn't feel like the right approach; so therefore, I would also love to see working ntp support.
(In reply to comment #2) > Created attachment 337504 [details] > ntp-client.service > > (I don't know if it's appropriate but the same is required for > net-misc/ntpclient that is currenty looking for a maintainer.) Oh sorry, I got confused. This service file also belongs to the ntp package and should be called ntpdate.service.
Is it worth having a "After=network.target" in the [Unit] section of these?
(In reply to comment #5) > Is it worth having a "After=network.target" in the [Unit] section of these? Hm, I didn't test but afaik ntp is also helpful if no network connection exists as it corrects a time drift itself.
I committed a set of working units (ntp-client, ntpd and sntp [including sntp openrc init script]) into the systemd-love overlay at [1]. Tested and working. [1] https://github.com/Sabayon/systemd-love/tree/master/net-misc/ntp
(In reply to Fabio Erculiani from comment #7) > I committed a set of working units (ntp-client, ntpd and sntp [including > sntp openrc init script]) into the systemd-love overlay at [1]. Tested and > working. > > [1] https://github.com/Sabayon/systemd-love/tree/master/net-misc/ntp I will commit in a week if nobody disagrees. Thanks
+*ntp-4.2.6_p5-r3 (06 Jul 2013) + + 06 Jul 2013; Pacho Ramos <pacho@gentoo.org> +files/ntp-client.service, + +files/ntpd.service, +files/sntp.confd, +files/sntp.rc, +files/sntp.service, + +ntp-4.2.6_p5-r3.ebuild: + Install unit file (#454902). + (committed as base-system policy allow to commit unit files)