mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-17 23:48:20 +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
21 lines
304 B
Bash
21 lines
304 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
case "$1" in
|
|
start)
|
|
systemctl is-active incus -q && exit 0
|
|
exec incusd activateifneeded
|
|
;;
|
|
|
|
stop)
|
|
systemctl is-active incus -q || exit 0
|
|
exec incusd shutdown
|
|
;;
|
|
|
|
*)
|
|
echo "unknown argument \`$1'" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
exit 0
|