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

34 lines
560 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/connamnd: start/stop connman
#
. /lib/lsb/init-functions
BIN_FILE="/usr/sbin/connmand"
BIN2_FILE="/usr/sbin/connman-vpnd"
case $1 in
start)
log_info_msg "Connman başlatılıyor...."
start_daemon $BIN_FILE
evaluate_retval
;;
stop)
log_info_msg "Connamn durduruluyor..."
killproc $BIN_FILE
killproc $BIN2_FILE
evaluate_retval
;;
restart)
$0 stop
sleep 2
$0 start
;;
status)
statusproc ${BIN_FILE}
;;
*)
echo "Usage: $0 [start|stop|restart]"
;;
esac
# End of file
# vim: set ft=sh noet :