summaryrefslogtreecommitdiffstats
path: root/local/.bin/hornet/svdisable
diff options
context:
space:
mode:
Diffstat (limited to 'local/.bin/hornet/svdisable')
-rwxr-xr-xlocal/.bin/hornet/svdisable10
1 files changed, 10 insertions, 0 deletions
diff --git a/local/.bin/hornet/svdisable b/local/.bin/hornet/svdisable
new file mode 100755
index 0000000..24f779f
--- /dev/null
+++ b/local/.bin/hornet/svdisable
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -eu
+
+svc="$1"
+
+svdn "$svc"
+svdn "${svc}/log"
+svc -x ~/.services/enabled/"$svc"/log
+svc -x ~/.services/enabled/"$svc"
+rm -f ~/.services/enabled/"$svc"