summaryrefslogtreecommitdiff
blob: ee34e75f3f5888cb650b9e1848a7916e743da7e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-im/simpserver-bin/files/simpserver.rc,v 1.3 2006/04/01 05:03:16 eradicator Exp $

depend() {
	need net
}

start() {
	ebegin "Starting simpserver"
	start-stop-daemon --start --quiet --background --make-pidfile --pidfile /var/run/simpserver.pid \
		--exec /opt/bin/simpserver -- /etc/simp.conf
	eend $?
}

stop() {
	ebegin "Stopping simpserver"
	start-stop-daemon --stop --quiet --pidfile /var/run/simpserver.pid
	eend $?
}