From e792fc53af848c07cd4bf7a11d3f64bbcc2b6533 Mon Sep 17 00:00:00 2001 From: Marty Oehme <contact@martyoeh.me> Date: Tue, 25 Feb 2025 20:42:22 +0100 Subject: [PATCH] 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. --- .dotter/global.toml | 3 ++- services/usv.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 services/usv.sh diff --git a/.dotter/global.toml b/.dotter/global.toml index 1e29708..d2e309e 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -64,9 +64,10 @@ office = "~" [services.files] "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 "services/systemd" = { target = "~/NOWHERE", type = "symbolic", if = "false" } -"services/sv" = { target = "~/.config/sv", type = "symbolic"} services = "~" [social.files] diff --git a/services/usv.sh b/services/usv.sh new file mode 100755 index 0000000..ff95fde --- /dev/null +++ b/services/usv.sh @@ -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