summaryrefslogtreecommitdiffstats
path: root/syssrv
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-11-01 16:06:21 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-11-01 16:06:21 +0100
commit99214b6beb6e33dd5e1b8164fc9b4452aa16384e (patch)
treef330e27f98b604f0e2a913d51ff550c6ac3f6cc6 /syssrv
parentccd3bcb32695e511ad51d96e366e9152a2cd66dd (diff)
parentffb505e9a098ba2ca3c385091fdaf1c11590c122 (diff)
downloadbin-99214b6beb6e33dd5e1b8164fc9b4452aa16384e.zip
bin-99214b6beb6e33dd5e1b8164fc9b4452aa16384e.tar.gz
Merge branch 'master' of asynk.ch:bin
Diffstat (limited to 'syssrv')
-rwxr-xr-xsyssrv12
1 files changed, 12 insertions, 0 deletions
diff --git a/syssrv b/syssrv
new file mode 100755
index 0000000..c995153
--- /dev/null
+++ b/syssrv
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+if [ $# -lt 2 ]; then
+ echo "usage: $0 on|off service" && exit 1
+fi
+if [ "$1" = "on" ]; then
+ systemctl start $2.service
+elif [ "$1" = "off" ]; then
+ systemctl stop $2.service
+else
+ echo "usage: $0 on|off service" && exit 1
+fi