blob: c12b71f57599771502b4047cbfd973b37e1fb033 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/sbin/openrc-run
command="/opt/linode/longview/Linode/Longview.pl"
pidfile="/run/longview.pid"
extra_started_commands="reload"
extra_stopped_commands="debug"
depend() {
need net
}
debug() {
ebegin "Starting ${RC_SVCNAME} (With Debug Flag)"
start-stop-daemon --start -p $pidfile --exec $command Debug
eend $?
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP -p $pidfile
eend $?
}
|