From a29c84d10ff285ffe6e9817dc3e7183407f3902c Mon Sep 17 00:00:00 2001 From: milisarge Date: Mon, 27 Mar 2017 20:47:15 +0300 Subject: [PATCH] hiawatha.rc --- talimatname/genel/hiawatha/hiawatha.kur-kos | 1 + talimatname/genel/hiawatha/hiawatha.rc | 33 +++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 talimatname/genel/hiawatha/hiawatha.kur-kos create mode 100755 talimatname/genel/hiawatha/hiawatha.rc diff --git a/talimatname/genel/hiawatha/hiawatha.kur-kos b/talimatname/genel/hiawatha/hiawatha.kur-kos new file mode 100644 index 000000000..d520b8257 --- /dev/null +++ b/talimatname/genel/hiawatha/hiawatha.kur-kos @@ -0,0 +1 @@ +cp /sources/milis.git/talimatname/genel/hiawatha/hiawatha.rc /etc/rc.d/init.d/hiawatha diff --git a/talimatname/genel/hiawatha/hiawatha.rc b/talimatname/genel/hiawatha/hiawatha.rc new file mode 100755 index 000000000..b482bdfef --- /dev/null +++ b/talimatname/genel/hiawatha/hiawatha.rc @@ -0,0 +1,33 @@ +#!/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