[systemd-devel] Upstream service file for NTP daemon chrony
Paul Menzel
paulepanter at users.sourceforge.net
Fri Jun 22 02:57:30 PDT 2012
Dear systemd folks,
Fedora ships systemd service files for chrony [1][2].
• chrony-wait.service:
1 [Unit]
2 Description=Wait for chrony to synchronize system clock
3 After=chronyd.service
4 Requires=chronyd.service
5 Before=time-sync.target
6 Wants=time-sync.target
7
8 [Service]
9 Type=oneshot
10 # Wait up to ~10 minutes for chronyd to synchronize and the remaining
11 # clock correction to be less than 0.1 seconds
12 ExecStart=/usr/bin/chronyc waitsync 60 0.1
13 RemainAfterExit=yes
14
15 [Install]
16 WantedBy=multi-user.target
• chronyd.service:
1 [Unit]
2 Description=NTP client/server
3 After=syslog.target ntpdate.service
4 Conflicts=ntpd.service
5 BindTo=systemd-timedated-ntp.target
6
7 [Service]
8 Type=forking
9 EnvironmentFile=-/etc/sysconfig/chronyd
10 ExecStartPre=/usr/libexec/chrony-helper generate-commandkey
11 ExecStart=/usr/sbin/chronyd -u chrony $OPTIONS
12 ExecStartPost=/usr/libexec/chrony-helper add-dhclient-servers
13
14 [Install]
15 WantedBy=multi-user.target
Do these look good enough to get upstream? `systemd-arch-units` refused
a pull request [3].
Thanks,
Paul
[1] http://pkgs.fedoraproject.org/gitweb/?p=chrony.git;a=blob;f=chrony-wait.service;h=3958160098eae926aaf7136d7b5b8bab42a6aa35;hb=HEAD
[2] http://pkgs.fedoraproject.org/gitweb/?p=chrony.git;a=blob;f=chronyd.service;h=167332e37511f19019aabc32f82a47ef80656cd5;hb=HEAD
[3] https://github.com/falconindy/systemd-arch-units/issues/98
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20120622/bdad1e44/attachment.pgp>
More information about the systemd-devel
mailing list