aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnunet/gnunet-system-services.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/gnunet/gnunet-system-services.initd')
-rw-r--r--community/gnunet/gnunet-system-services.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/gnunet/gnunet-system-services.initd b/community/gnunet/gnunet-system-services.initd
new file mode 100644
index 00000000000..4b9f572a22e
--- /dev/null
+++ b/community/gnunet/gnunet-system-services.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+
+name="gnunet-system-services"
+description="A secure and privacy enhancing peer-to-peer overlay network"
+command="/usr/lib/gnunet/libexec/gnunet-service-arm"
+command_args="-c /etc/gnunet.conf"
+command_user="gnunet:gnunet"
+command_background="yes"
+pidfile="/run/${SVCNAME}.pid"
+
+depend() {
+ need net
+}
+
+start_pre() {
+ checkpath --directory --owner $command_user --mode 2755 \
+ /var/lib/gnunet
+ checkpath --directory --owner $command_user --mode 0755 \
+ /run/gnunet
+}