mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-21 10:50:54 +00:00
- both openrc and systemd init.d / service files updated to match how upstream intends them to be used https://linuxcontainers.org/incus/docs/main/packaging/#init-scripts - include fuidshift again, installed in /usr/sbin like it's supposed to. Won't collide with lxd's fuidshift. Signed-off-by: Joonas Niilola <juippis@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/34449
37 lines
670 B
Text
37 lines
670 B
Text
#!/sbin/openrc-run
|
|
# Copyright 2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
name="incus-user socket daemon"
|
|
description="incus-user socket daemon"
|
|
|
|
DAEMON=/usr/sbin/incus-user
|
|
PIDFILE=/run/incus-user.pid
|
|
|
|
depend() {
|
|
need incus
|
|
need net
|
|
}
|
|
|
|
start() {
|
|
ebegin "Starting incus-user socket daemon"
|
|
|
|
start-stop-daemon --start \
|
|
--pidfile ${PIDFILE} \
|
|
--exec ${DAEMON} \
|
|
--background \
|
|
--make-pidfile \
|
|
-- \
|
|
--group incus
|
|
eend ${?}
|
|
}
|
|
|
|
stop() {
|
|
if [ "${RC_CMD}" = restart ]; then
|
|
start-stop-daemon --stop --quiet -p "${PIDFILE}"
|
|
eend ${?}
|
|
else
|
|
start-stop-daemon --stop --quiet -p "${PIDFILE}"
|
|
eend ${?}
|
|
fi
|
|
}
|