aboutsummaryrefslogtreecommitdiffstats
path: root/community/gnunet/gnunet-user-services.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/gnunet/gnunet-user-services.initd')
-rw-r--r--community/gnunet/gnunet-user-services.initd16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/gnunet/gnunet-user-services.initd b/community/gnunet/gnunet-user-services.initd
new file mode 100644
index 00000000000..04188ade25b
--- /dev/null
+++ b/community/gnunet/gnunet-user-services.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+
+# Extract user name from file name.
+user="${SVCNAME#gnunet-}" # Cut off prefix.
+user="${user%-services}" # Cut off suffix.
+
+description="GNUnet user services for $user"
+command="/usr/lib/gnunet/libexec/gnunet-service-arm"
+command_args="-c /home/$user/.config/gnunet.conf"
+command_user="$user:$user"
+command_background="yes"
+pidfile="/run/${SVCNAME}.$user.pid"
+
+depend() {
+ need gnunet-system-services
+}