83aa68ed96
- update to 2.2 see /usr/share/doc/packages/chrony/NEWS - sync with fedora spec and add systemd support - refreshed chrony-config.patch to apply cleanly again - added chrony-2.2_logrotate.patch: add missing su option as we no longer have the daemon run as root. - added chrony-service-helper.patch: imported from fedora with a changed path for moving from libexecdir to datadir - only use syscall filters on 12.3 and newer - move helper from libexecdir to datadir OBS-URL: https://build.opensuse.org/request/show/346314 OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=6
21 lines
405 B
Bash
21 lines
405 B
Bash
#!/bin/bash
|
|
|
|
SERVERFILE=$SAVEDIR/chrony.servers.$interface
|
|
|
|
chrony_config() {
|
|
rm -f $SERVERFILE
|
|
if [ "$PEERNTP" != "no" ]; then
|
|
for server in $new_ntp_servers; do
|
|
echo "$server ${NTPSERVERARGS:-iburst}" >> $SERVERFILE
|
|
done
|
|
/usr/share/chrony-helper update-daemon || :
|
|
fi
|
|
}
|
|
|
|
chrony_restore() {
|
|
if [ -f $SERVERFILE ]; then
|
|
rm -f $SERVERFILE
|
|
/usr/share/chrony-helper update-daemon || :
|
|
fi
|
|
}
|