blob: 5b7c1f441d7ece864ef8a2ea438755cfbd8af02b (
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/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
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 $?
}
|