blob: 6f050a846626e7e5bfb9178babf9e7cfbfc4ea23 (
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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
use dns
provide ircd
}
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 $?
}
|