milis/bin/servis

14 lines
204 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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