Summary: | net-misc/ntp: add systemd unit | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mario Kicherer <dev> |
Component: | Current packages | Assignee: | Gentoo systemd Team <systemd> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | alexander, ao, lxnay, pacho, poletti.marco, tomwij |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 448882, 468898 | ||
Attachments: |
ntp.service
ntp-client.service |
Description
Mario Kicherer
2013-01-31 20:42:58 UTC
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) |