From da75b42e654e8d9acf1e8b494b2b68ff302aff2b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 28 Feb 2021 00:50:32 -0500 Subject: add command for fully disabling a service --- bin/hornet/svdisable | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/hornet/svdisable (limited to 'bin/hornet') diff --git a/bin/hornet/svdisable b/bin/hornet/svdisable new file mode 100755 index 0000000..24f779f --- /dev/null +++ b/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" -- cgit v1.2.3-54-g00ecf