summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/freenet/files/freenet.initd')
-rwxr-xr-xnet-p2p/freenet/files/freenet.initd11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-p2p/freenet/files/freenet.initd b/net-p2p/freenet/files/freenet.initd
new file mode 100755
index 000000000000..75e957e579cc
--- /dev/null
+++ b/net-p2p/freenet/files/freenet.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+start() {
+ start-stop-daemon --start --user freenet --chdir /var/freenet/ --background --stdout=/var/freenet/freenet.log --stderr=/var/freenet/freenet.log --make-pidfile --pidfile=/var/run/freenet.pid --name freenet --exec java -- -cp $classpath $additional_options $configurable_options $target
+}
+
+stop() {
+ start-stop-daemon --stop --user freenet --pidfile=/var/run/freenet.pid
+}