servis.eklendi

This commit is contained in:
milisarge 2017-03-23 00:07:38 +02:00
parent bb627e298a
commit 1780b29327
1 changed files with 13 additions and 0 deletions

13
bin/servis Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
if [ -z "$1" ]; then
echo "kullanım: servis <servicename> 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