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