milis/ayarlar/servisler/mbd/init.d/slim

30 lines
433 B
Plaintext
Raw Normal View History

2017-05-25 19:16:23 +02:00
#!/bin/sh
#
# /etc/rc.d/slim: start/stop slim
#
2017-06-06 07:15:04 +02:00
. /lib/lsb/init-functions
2017-05-25 19:16:23 +02:00
case $1 in
start)
2017-06-06 07:15:04 +02:00
log_info_msg "Yerel ayarlar eklendi..."
yerel_ayar
log_info_msg "SLIM başlatılıyor..."
2017-05-25 19:16:23 +02:00
/usr/bin/slim -d
;;
stop)
2017-06-06 07:15:04 +02:00
log_info_msg "SLIM durduruluyor..."
2017-05-25 19:16:23 +02:00
killall /usr/bin/slim
;;
restart)
2017-06-06 07:15:04 +02:00
log_info_msg "SLIM yebaşlatılıyor..."
2017-05-25 19:16:23 +02:00
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file