blob: e656b18d0e674f506dc3ec7f8cb5f7aeb2493636 (
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/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-ircd/files/ptlink-ircd.init.d,v 1.1 2004/07/10 22:24:03 swegener Exp $
depend() {
need net
use dns
}
start() {
ebegin "Starting ptlink-ircd"
start-stop-daemon --start --quiet --exec /usr/bin/ptlink-ircd \
--chuid ${PTLINKIRCD_USER} -- -l /var/lib/ptlink-ircd \
-e /etc/ptlink-ircd >/dev/null
eend $?
}
stop() {
ebegin "Shutting down ptlink-ircd"
start-stop-daemon --stop --pidfile /var/lib/ptlink-ircd/ircd.pid
eend $?
}
|