The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / openntpd / S49ntp
1 #!/bin/sh
2
3 [ -x /usr/sbin/ntpd ] || exit 0
4 [ -f /etc/ntpd.conf ] || exit 0
5
6 case "$1" in
7         start)
8                 echo -n "Starting openntpd: "
9                 start-stop-daemon -S -x /usr/sbin/ntpd -- -p /run/ntpd.pid
10                 [ $? = 0 ] && echo "OK" || echo "FAIL"
11                 ;;
12         stop)
13                 echo -n "Stopping openntpd: "
14                 start-stop-daemon -K -q -p /run/ntpd.pid
15                 [ $? = 0 ] && echo "OK" || echo "FAIL"
16                 ;;
17         restart)
18                 "$0" stop
19                 sleep 1
20                 "$0" start
21                 ;;
22         *)
23                 echo "Usage: $0 {start|stop|restart}"
24                 ;;
25 esac