2017-07-14 13:55:31 +02:00
|
|
|
|
#!/bin/sh
|
|
|
|
|
# /etc/rc.d/connamnd: start/stop connman
|
|
|
|
|
#
|
2018-07-11 01:10:59 +02:00
|
|
|
|
. /lib/lsb/init-functions
|
|
|
|
|
BIN_FILE="/usr/sbin/connmand"
|
|
|
|
|
BIN2_FILE="/usr/sbin/connman-vpnd"
|
2017-07-14 13:55:31 +02:00
|
|
|
|
case $1 in
|
|
|
|
|
start)
|
2018-07-11 01:10:59 +02:00
|
|
|
|
log_info_msg "Connman başlatılıyor...."
|
|
|
|
|
start_daemon $BIN_FILE --nodaemon
|
|
|
|
|
evaluate_retval
|
2017-07-14 13:55:31 +02:00
|
|
|
|
;;
|
|
|
|
|
stop)
|
2018-07-11 01:10:59 +02:00
|
|
|
|
log_info_msg "Connamn durduruluyor..."
|
|
|
|
|
killproc $BIN_FILE
|
|
|
|
|
killproc $BIN2_FILE
|
|
|
|
|
evaluate_retval
|
2017-07-14 13:55:31 +02:00
|
|
|
|
;;
|
|
|
|
|
restart)
|
|
|
|
|
$0 stop
|
2018-07-11 01:10:59 +02:00
|
|
|
|
sleep 2
|
2017-07-14 13:55:31 +02:00
|
|
|
|
$0 start
|
|
|
|
|
;;
|
2018-07-11 01:10:59 +02:00
|
|
|
|
status)
|
|
|
|
|
statusproc ${BIN_FILE}
|
|
|
|
|
;;
|
2017-07-14 13:55:31 +02:00
|
|
|
|
*)
|
|
|
|
|
echo "Usage: $0 [start|stop|restart]"
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
# End of file
|
|
|
|
|
# vim: set ft=sh noet :
|