From ffb505e9a098ba2ca3c385091fdaf1c11590c122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 26 Oct 2012 21:27:55 +0200 Subject: =?UTF-8?q?add=20syssrv:=C2=A0systemctl=20start/stop=20*.service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- syssrv | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 syssrv 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 -- cgit v1.1-2-g2b99