summaryrefslogtreecommitdiffstats
path: root/tests/openntpd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openntpd')
-rw-r--r--tests/openntpd11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/openntpd b/tests/openntpd
new file mode 100644
index 0000000..2a6b2c8
--- /dev/null
+++ b/tests/openntpd
@@ -0,0 +1,11 @@
+ apk_add $@
+ sed -i -e '/^NTPD_OPTS=.*/d' /etc/conf.d/ntpd
+ echo 'NTPD_OPTS="-s"' >> /etc/conf.d/ntpd
+ /etc/init.d/ntpd start
+ sleep 2
+ pidof ntpd
+ /etc/init.d/ntpd stop
+ # verify that it really dies
+ sleep 2
+ ! pidof ntpd
+ apk_del $@