1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/gnunet/gnunet-user-services.initd
2022-02-16 22:59:37 +00:00

16 lines
433 B
Bash

#!/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
}