summaryrefslogtreecommitdiff
path: root/dev-libs/tntnet/files/tntnet-3.initd
blob: b5c0f630703911a0f3ec25bf893fccf32e6595ed (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
25
26
27
#!/sbin/openrc-run
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

PIDFILE="/var/run/tntnet.pid"

depend() {
	use net
}

start() {
	ebegin "Starting tntnet"
	start-stop-daemon --start --quiet --pidfile $PIDFILE --exec /usr/bin/tntnet
	eend $?
}

stop() {
	ebegin "Stopping tntnet"
	start-stop-daemon --stop --pidfile $PIDFILE --exec /usr/bin/tntnet
	eend $?
}

reload() {
	ebegin "Reloading tntnet configuration"
	start-stop-daemon --pidfile $PIDFILE --signal HUP --exec /usr/bin/tntnet
	eend $?
}