diff options
author | Mike Frysinger <vapier@gentoo.org> | 2004-08-25 14:32:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2004-08-25 14:32:59 +0000 |
commit | 97c4f6f3789ae2c119473c881556f334348be338 (patch) | |
tree | bab33d272a859363b39e9fff5f89efc9b1f5be4a /net-misc/ntp/files | |
parent | firewall friendly defaults (diff) | |
download | historical-97c4f6f3789ae2c119473c881556f334348be338.tar.gz historical-97c4f6f3789ae2c119473c881556f334348be338.tar.bz2 historical-97c4f6f3789ae2c119473c881556f334348be338.zip |
small sanity check in case machine doesnt have the ntp accounts
Diffstat (limited to 'net-misc/ntp/files')
-rw-r--r-- | net-misc/ntp/files/ntpd.rc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/net-misc/ntp/files/ntpd.rc b/net-misc/ntp/files/ntpd.rc index 46e317694764..37a6788095c2 100644 --- a/net-misc/ntp/files/ntpd.rc +++ b/net-misc/ntp/files/ntpd.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntpd.rc,v 1.19 2004/07/15 00:05:46 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntpd.rc,v 1.20 2004/08/25 14:32:59 vapier Exp $ depend() { need net @@ -23,7 +23,10 @@ start() { ebegin "Starting ntpd" touch /var/run/ntpd.pid - chown ntp:ntp /var/run/ntpd.pid + if ! chown ntp:ntp /var/run/ntpd.pid ; then + eend 1 "unable to chown pid file" + return 1 + fi /usr/bin/ntpd -p /var/run/ntpd.pid ${NTPD_OPTS} eend $? "Failed to start ntpd" } |