diff options
| author | Wenzong Fan <wenzong.fan@windriver.com> | 2014-10-13 02:17:16 -0400 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-10-14 11:48:58 +0200 |
| commit | 681413157866cf2544f27e7ca22496f277e0c63a (patch) | |
| tree | fa615a5c1b050371a4841a858d2e34b96f40e9af /meta-networking/recipes-support | |
| parent | 657b3642c43192d94fcdcbc7bf11fafa111fa83c (diff) | |
| download | meta-openembedded-681413157866cf2544f27e7ca22496f277e0c63a.tar.gz | |
ntp: fix path to drift file
The default path of ntp drift file is /etc/ntp.drift, ntp daemon
maybe fails to create this file since the user ntp is not always
permitted to write /etc.
Refer to other distributions such as RedHat, Debian, just moving
the file to /var/lib/ntp which the home dir of user ntp.
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support')
| -rw-r--r-- | meta-networking/recipes-support/ntp/files/ntp.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-networking/recipes-support/ntp/files/ntp.conf b/meta-networking/recipes-support/ntp/files/ntp.conf index 875b7ebc1d..676e186453 100644 --- a/meta-networking/recipes-support/ntp/files/ntp.conf +++ b/meta-networking/recipes-support/ntp/files/ntp.conf | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | # This is the most basic ntp configuration file | 1 | # This is the most basic ntp configuration file |
| 2 | # The driftfile must remain in a place specific to this | 2 | # The driftfile must remain in a place specific to this |
| 3 | # machine - it records the machine specific clock error | 3 | # machine - it records the machine specific clock error |
| 4 | driftfile /etc/ntp.drift | 4 | driftfile /var/lib/ntp/drift |
| 5 | # This should be a server that is close (in IP terms) | 5 | # This should be a server that is close (in IP terms) |
| 6 | # to the machine. Add other servers as required. | 6 | # to the machine. Add other servers as required. |
| 7 | # Unless you un-comment the line below ntpd will sync | 7 | # Unless you un-comment the line below ntpd will sync |
