summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2021-02-14 18:13:41 +0100
committerJoerg Bornkessel <hd_brummy@gentoo.org>2021-02-14 18:14:33 +0100
commit62bbcee37d9d89edd2392a141218b515cffe3c84 (patch)
treee695df0e2793636c07970d8fec28318d14a2845f /dev-libs/tntnet/files/tntnet-3.initd
parentdev-libs/cxxtools: version bump (diff)
downloadgentoo-62bbcee37d9d89edd2392a141218b515cffe3c84.tar.gz
gentoo-62bbcee37d9d89edd2392a141218b515cffe3c84.tar.bz2
gentoo-62bbcee37d9d89edd2392a141218b515cffe3c84.zip
dev-libs/tntnet: version bump
- upstream fixed the bundeld zlib handling in some parts we still need a walkaround for this - droped use-flag example, as it depends on dev-libs/tntdb it not exist in the tree (yet) Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>
Diffstat (limited to 'dev-libs/tntnet/files/tntnet-3.initd')
-rw-r--r--dev-libs/tntnet/files/tntnet-3.initd27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-libs/tntnet/files/tntnet-3.initd b/dev-libs/tntnet/files/tntnet-3.initd
new file mode 100644
index 000000000000..b5c0f6307039
--- /dev/null
+++ b/dev-libs/tntnet/files/tntnet-3.initd
@@ -0,0 +1,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 $?
+}