From 1780b293272694c248162a234460d19061bdb579 Mon Sep 17 00:00:00 2001 From: milisarge Date: Thu, 23 Mar 2017 00:07:38 +0200 Subject: [PATCH] servis.eklendi --- bin/servis | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/servis diff --git a/bin/servis b/bin/servis new file mode 100755 index 000000000..7153e9ebb --- /dev/null +++ b/bin/servis @@ -0,0 +1,13 @@ +#!/bin/bash + +if [ -z "$1" ]; then + echo "kullanım: servis start|stop|restart" + exit 1 +fi + +if [ ! -f /etc/init.d/$1 ]; then + echo "$1 servisi bulunamadı." + exit 1 +fi + +/etc/init.d/$1 $2