milis/talimatname/genel/hiawatha/hiawatha.rc

34 lines
487 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/sh
#
# /etc/rc.d/hiawatha: başlatma/durdurma hiawatha web sunucu
#
. /lib/lsb/init-functions
_PID=/var/run/hiawatha.pid
case $1 in
start)
log_info_msg "Hiawatha başlatılıyor..."
/usr/bin/hiawatha
evaluate_retval
;;
stop)
log_info_msg "Hiawatha durduruluyor..."
if [ -f $_PID ]; then
kill `cat $_PID`
else
killall -9 /usr/bin/hiawatha
fi
evaluate_retval
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "Kullanım: $0 [start|stop|restart]"
exit 1
;;
esac