1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/gnunet/gnunet-system-services.initd
xrs 41103bc3f2 testing/gnunet: add support for user services
- 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
2020-05-08 13:01:43 +00:00

18 lines
414 B
Text

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