lelgenio
|
02c34a30eb
|
completions/sv.fish: update completion for sv, a part of runit.
This should fix finding the correct active svdir in most cases.
Search for services in the following order:
$SVDIR - User defined override
/run/runit/runsvdir/current - Value patched in by Void[1]
/run/runit/service - Value patched in by Artix[2]
/etc/service - Value patched in by Debian[3]
/services - Default value for runit[4]
Also don't use /etc for searching since it is not guaranteed that there
is an instance of runsvdir running in that directory.
Finally return quietly if there is no svdir.
[1] 75403cef76/srcpkgs/runit/template (L29)
[2] c9d691ce86/x86_64/core/PKGBUILD (L9)
[3] https://sources.debian.org/src/runit/2.1.2-41/debian/patches/0001-default-directory-for-services-on-Debian-is-etc-servi.diff/
[4] hard-coded in sv.c
Closes #8738
|
2022-03-02 22:14:50 +01:00 |
|