milis/bin/servis

14 lines
204 B
Plaintext
Raw Normal View History

2017-03-22 23:07:38 +01:00
#!/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