blob: 1a370c9d884df9fb0480182d7558b2aa4ae05329 (
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
|
#!/sbin/openrc-run
depend() {
need net
provide jabber-server
}
start() {
ebegin "Starting Openfire Server"
start-stop-daemon \
--user openfire \
--background \
--make-pidfile \
--pidfile /run/openfire.pid \
--start \
--exec $OPENFIRE_CMD -- $OPENFIRE_ARGS > /var/log/openfire.log 2>&1
eend
}
stop() {
ebegin "Stopping Openfire Server"
start-stop-daemon --pidfile /run/openfire.pid --stop
eend
}
|