27
|
1 |
#!/sbin/runscript |
|
2 |
# Copyright 1999-2010 Gentoo Foundation |
|
3 |
# Distributed under the terms of the GNU General Public License v2 |
|
4 |
# $Header: $ |
|
5 |
|
|
6 |
depend() { |
|
7 |
need net |
|
8 |
use jabber-server |
|
9 |
} |
|
10 |
|
|
11 |
start() { |
|
12 |
ebegin "Starting S2P Spectrum Transport" |
|
13 |
start-stop-daemon --start --pidfile ${PIDFILE} \ |
|
14 |
--chuid jabber:jabber --exec /usr/bin/spectrum -- ${CONFFILE} |
|
15 |
eend $? |
|
16 |
} |
|
17 |
|
|
18 |
stop() { |
|
19 |
ebegin "Stopping S2P Spectrum Transport" |
|
20 |
start-stop-daemon --stop --quiet --pidfile ${PIDFILE} |
|
21 |
eend $? |
|
22 |
} |