services: Add usv user service manager alias

If `vsv` void service manager program is on the system, we also point it
to our own user service directory and make it accessible as `usv` user
service manager.
This commit is contained in:
Marty Oehme 2025-02-25 20:42:22 +01:00
parent 8c28d8f7d5
commit e792fc53af
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 7 additions and 1 deletions
.dotter
services

View file

@ -64,9 +64,10 @@ office = "~"
[services.files] [services.files]
"services/README.md" = { target = "~/NOWHERE", type = "symbolic", if = "false" } "services/README.md" = { target = "~/NOWHERE", type = "symbolic", if = "false" }
"services/usv.sh" = { target = "~/.config/sh/alias.d/usv.sh", type = "symbolic" }
"services/sv" = { target = "~/.config/sv", type = "symbolic"}
# FIXME: Disabling existing systemd services for the moment # FIXME: Disabling existing systemd services for the moment
"services/systemd" = { target = "~/NOWHERE", type = "symbolic", if = "false" } "services/systemd" = { target = "~/NOWHERE", type = "symbolic", if = "false" }
"services/sv" = { target = "~/.config/sv", type = "symbolic"}
services = "~" services = "~"
[social.files] [social.files]

5
services/usv.sh Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env sh
if command -v vsv >/dev/null 2>&1; then
alias usv='vsv -d $HOME/.local/state/service'
fi