summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-03-06 03:29:52 -0500
committerJesse Luehrs <doy@tozt.net>2018-03-06 03:48:15 -0500
commitafced7ae76770a7968e9d256ad8bf6b3f147efd9 (patch)
tree637591de0c7bdab44451d014b21ab3d2fe34ed23 /bin
parent2119dfeadd57d94c5c4879779fd51f2d3769f261 (diff)
downloadconf-afced7ae76770a7968e9d256ad8bf6b3f147efd9.tar.gz
conf-afced7ae76770a7968e9d256ad8bf6b3f147efd9.zip
move services into separate available/enabled directories
this way, switching branches won't keep randomly spinning up a bunch of unkillable supervise processes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/svget2
-rwxr-xr-xbin/svkill2
-rwxr-xr-xbin/svstop2
-rwxr-xr-xbin/svup2
-rwxr-xr-xbin/update_mail2
5 files changed, 5 insertions, 5 deletions
diff --git a/bin/svget b/bin/svget
index d0cf384..77c18f4 100755
--- a/bin/svget
+++ b/bin/svget
@@ -1,3 +1,3 @@
#!/bin/bash
-svstat "$HOME/.services/$1"
+svstat "$HOME/.services/enabled/$1"
diff --git a/bin/svkill b/bin/svkill
index c0ec724..060d2c7 100755
--- a/bin/svkill
+++ b/bin/svkill
@@ -1,4 +1,4 @@
#!/bin/bash
-svc -k "$HOME/.services/$1"
+svc -k "$HOME/.services/enabled/$1"
svget "$1"
diff --git a/bin/svstop b/bin/svstop
index d861c6e..36c0132 100755
--- a/bin/svstop
+++ b/bin/svstop
@@ -1,4 +1,4 @@
#!/bin/bash
-svc -d "$HOME/.services/$1"
+svc -d "$HOME/.services/enabled/$1"
svget "$1"
diff --git a/bin/svup b/bin/svup
index aea92f3..c49a99e 100755
--- a/bin/svup
+++ b/bin/svup
@@ -1,4 +1,4 @@
#!/bin/bash
-svc -u "$HOME/.services/$1"
+svc -u "$HOME/.services/enabled/$1"
svget "$1"
diff --git a/bin/update_mail b/bin/update_mail
index 88fde5f..b909d9f 100755
--- a/bin/update_mail
+++ b/bin/update_mail
@@ -1,6 +1,6 @@
#!/bin/sh
-stat=$(svstat "$HOME/.services/offlineimap")
+stat=$(svstat "$HOME/.services/enabled/offlineimap")
if echo $stat | grep -q "offlineimap: down"; then
echo "no offlineimap process running" >&2
exit 1