1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #!/bin/sh
- . /lib/lsb/init-functions
- BIN_FILE="/usr/sbin/lxdm"
- case $1 in
- start)
- log_info_msg "Yerel ayarlar eklendi..."
- yerel_ayar
- log_info_msg "Starting LXDM..."
- start_daemon $BIN_FILE -d
- evaluate_retval
- ;;
- stop)
- log_info_msg "Stopping LXDM..."
- killproc $BIN_FILE
- evaluate_retval
- ;;
- restart)
- $0 stop
- sleep 2
- $0 start
- ;;
- status)
- statusproc ${BIN_FILE}
- ;;
- *)
- echo "usage: $0 [start|stop|restart|status]"
- exit 1
- ;;
- esac
|