blob: 86a5a4049562b52a0ca45a6ba0906d5f1dcc2125 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
depend() {
need net
after apache
after apache2
}
start() {
ebegin "Starting Mserv"
start-stop-daemon --start -o -b --chuid mserv --exec /usr/bin/mserv -- \
-r /var/spool/mserv -c /etc/mserv/config -p ${PORT}
eend $?
}
stop() {
ebegin "Stopping Mserv"
start-stop-daemon --stop -o -q --exec /usr/bin/mserv
eend $?
}
|