summaryrefslogtreecommitdiff
path: root/package/openntpd/files
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-10-29 20:25:06 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2014-10-29 20:25:06 -0500
commitcf41b77ac20cb46cc5556561528cb788a3fe42fc (patch)
treed114dbd78fe127eeb4a3f9571d52031e41c60e2d /package/openntpd/files
parent309009db48cf84e4c3bf7785a788e972a519821a (diff)
fix openntpd startup script, reported by joerg
Diffstat (limited to 'package/openntpd/files')
-rw-r--r--package/openntpd/files/openntpd.init (renamed from package/openntpd/files/ntpd.init)8
-rw-r--r--package/openntpd/files/openntpd.postinst4
2 files changed, 6 insertions, 6 deletions
diff --git a/package/openntpd/files/ntpd.init b/package/openntpd/files/openntpd.init
index 02239f318..f21bd730a 100644
--- a/package/openntpd/files/ntpd.init
+++ b/package/openntpd/files/openntpd.init
@@ -6,13 +6,13 @@
case $1 in
autostop) ;;
autostart)
- test x"${ntpd:-NO}" = x"NO" && exit 0
- test x"$ntpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
+ test x"${openntpd:-NO}" = x"NO" && exit 0
+ test x"$openntpd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
exec sh $0 start
;;
start)
- mkdir -p /tmp/.ntp
- /usr/sbin/ntpd $ntpd_flags
+ mkdir -p /tmp/.ntp &> /dev/null
+ /usr/sbin/ntpd $openntpd_flags
;;
stop)
kill $(pgrep -f /usr/sbin/ntpd)
diff --git a/package/openntpd/files/openntpd.postinst b/package/openntpd/files/openntpd.postinst
index 1e4f34da1..1688c112c 100644
--- a/package/openntpd/files/openntpd.postinst
+++ b/package/openntpd/files/openntpd.postinst
@@ -4,5 +4,5 @@ gid=$(get_next_gid)
add_group ntp $gid
add_user ntp $(get_next_uid) $gid /tmp/.ntp
add_service ntp 123/udp
-add_rcconf ntpd_flags "-s"
-add_rcconf ntpd NO
+add_rcconf openntpd_flags "-s"
+add_rcconf openntpd NO