ansible-alpine-host/templates/etc/init.d/ntpd.j2

21 lines
322 B
Plaintext
Raw Normal View History

2022-06-19 05:48:44 +00:00
#!/sbin/openrc-run
DAEMON="/usr/sbin/ntpd"
PIDFILE="/var/run/ntpd.pid"
depend() {
need net
}
start() {
ebegin "Starting NTPSec"
start-stop-daemon --start --exec "${DAEMON}" --pidfile "${PIDFILE}" -- -g
2022-06-19 05:48:44 +00:00
eend $?
}
stop() {
ebegin "Stopping NTPSec"
start-stop-daemon --stop --pidfile "${PIDFILE}"
eend $?
}