chrony: fixes to make it work as 'chrony' user/group.

This commit is contained in:
Juan RP 2011-10-14 00:49:00 +02:00
parent 43c1e78ae2
commit 939ff62bec
3 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,7 @@
case ${ACTION} in
post)
[ ! -d var/log/chrony ] && mkdir -p var/log/chrony
chown chrony:chrony var/log/chrony
[ ! -d var/db/chrony ] && mkdir -p var/db/chrony
chown chrony:chrony var/log/chrony var/db/chrony
;;
esac

View file

@ -1,7 +1,6 @@
case ${ACTION} in
purge)
[ -d var/log/chrony ] && rm -rf var/log/chrony
[ -f etc/chrony.conf ] && rm -f etc/chrony.conf
[ -f etc/chrony.drift ] && rm -f etc/chrony.drift
[ -d var/db/chrony ] && rm -rf var/db/chrony
;;
esac

View file

@ -89,7 +89,7 @@ maxupdateskew 5
# immediately so that it doesn't gain or lose any more time. You
# generally want this, so it is uncommented.
driftfile /etc/chrony.drift
driftfile /var/db/chrony/drift
# If you want to use the program called chronyc to configure aspects of
# chronyd's operation once it is running (e.g. tell it the Internet link
@ -98,7 +98,7 @@ driftfile /etc/chrony.drift
# exchanges between cooperating machines.) Again, this option is
# assumed by default.
keyfile /etc/chrony.keys
keyfile /var/db/chrony/keys
# Tell chronyd which numbered key in the file is used as the password
# for chronyc. (You can pick any integer up to 2**32-1. '1' is just a
@ -273,7 +273,7 @@ cmdallow 127.0.0.1
# You need to have 'enhanced RTC support' compiled into your Linux
# kernel. (Note, these options apply only to Linux.)
rtcfile /etc/chrony.rtc
rtcfile /var/db/chrony/rtc
# Your RTC can be set to keep Universal Coordinated Time (UTC) or local
# time. (Local time means UTC +/- the effect of your timezone.) If you