aports/community/incus-feature/incus-feature-user.initd
2024-08-26 12:31:16 +00:00

19 lines
342 B
Bash

#!/sbin/openrc-run
: ${INCUS_USER_DAEMON_GROUP:="incus-user"}
command="/usr/sbin/incus-user"
command_args="--group ${INCUS_USER_DAEMON_GROUP}"
command_background="true"
pidfile="/run/incus/${RC_SVCNAME}.pid"
depend() {
need net cgroups dbus
use lxcfs
after firewall
}
start_pre() {
checkpath --directory "${pidfile%/*}" --mode 0750
}