diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-11-01 16:06:21 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-11-01 16:06:21 +0100 |
commit | 99214b6beb6e33dd5e1b8164fc9b4452aa16384e (patch) | |
tree | f330e27f98b604f0e2a913d51ff550c6ac3f6cc6 /syssrv | |
parent | ccd3bcb32695e511ad51d96e366e9152a2cd66dd (diff) | |
parent | ffb505e9a098ba2ca3c385091fdaf1c11590c122 (diff) | |
download | bin-99214b6beb6e33dd5e1b8164fc9b4452aa16384e.zip bin-99214b6beb6e33dd5e1b8164fc9b4452aa16384e.tar.gz |
Merge branch 'master' of asynk.ch:bin
Diffstat (limited to 'syssrv')
-rwxr-xr-x | syssrv | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |