summaryrefslogtreecommitdiffstats
path: root/bin/hush
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-04 11:42:23 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-04 11:42:23 -0500
commit68c2d3401566ecc96b4367b7fdba0a44d79565d9 (patch)
treeb85156708f1079257254096169fd04bdc8da2f4b /bin/hush
parent22dee4ba578f03c902fa5f0e1e315d6499cea8ab (diff)
downloadconf-68c2d3401566ecc96b4367b7fdba0a44d79565d9.tar.gz
conf-68c2d3401566ecc96b4367b7fdba0a44d79565d9.zip
add script to disable a service
Diffstat (limited to 'bin/hush')
-rwxr-xr-xbin/hush/svnuke9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/hush/svnuke b/bin/hush/svnuke
new file mode 100755
index 0000000..6a383ce
--- /dev/null
+++ b/bin/hush/svnuke
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+svdn "$1"
+svdn "$1/log"
+
+rm -f ~/.services/enabled/"$1"
+
+svc -x ~/.services/available/"$1"/log
+svc -x ~/.services/available/"$1"