mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-09-01 11:51:16 +02:00
- add gnunet-user-setup script - add interactive support for GNU Name System proxy to setup script - add home directory for system services (/var/lib/gnunet) - improve post install guide
17 lines
433 B
Plaintext
17 lines
433 B
Plaintext
#!/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
|
|
}
|