blob: 8db56c5cff8b5c6d69e56ac955fcd6a056c9a298 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/sbin/runscript
# Copyright 2012 Alexandre Rostovtsev <tetromino@gentoo.org>
# Distributed under the terms of the GNU General Public License v2
description="hostnamed, localed, and timedated D-Bus services for OpenRC"
depend() {
need dbus
}
start() {
[ -n "${NTP_SERVICE}" ] &&
OPENRC_SETTINGSD_OPTS="--ntp-service=${NTP_SERVICE} ${OPENRC_SETTINGSD_OPTS}"
ebegin "Starting openrc-settingsd"
start-stop-daemon --start --quiet --pidfile "@pidfile@" \
"@libexecdir@/openrc-settingsd" -- ${OPENRC_SETTINGSD_OPTS}
eend $?
}
stop() {
ebegin "Stopping openrc-settingsd"
start-stop-daemon --stop --quiet --pidfile "@pidfile@"
eend $?
}
# vim: set ft=gentoo-init-d ts=4 :
|