2017-03-28 04:34:52 +02:00
|
|
|
#!/bin/sh
|
|
|
|
# Begin /etc/rc.d/init.d/lxdm
|
|
|
|
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
# Provides: lxdm
|
|
|
|
# Required-Start: $local_fs
|
|
|
|
# Should-Start: $remote_fs $syslog
|
|
|
|
# Required-Stop: $local_fs
|
|
|
|
# Should-Stop: $remote_fs $syslog
|
|
|
|
# Default-Start: 5
|
|
|
|
# Default-Stop: 0 1 2 3 4 6
|
|
|
|
# Short-Description: Starts lxdm.
|
|
|
|
# Description: Starts lxdm daemon.
|
|
|
|
# X-LFS-Provided-By: BLFS
|
|
|
|
### END INIT INFO
|
|
|
|
|
|
|
|
. /lib/lsb/init-functions
|
|
|
|
|
|
|
|
BIN_FILE="/usr/sbin/lxdm"
|
|
|
|
|
|
|
|
#$LastChangedBy: ken $
|
|
|
|
#$Date: 2014-09-11 17:27:58 -0500 (Thu, 11 Sep 2014) $
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
start)
|
2017-03-29 00:00:34 +02:00
|
|
|
log_info_msg "Yerel ayarlar eklendi..."
|
|
|
|
yerel_ayar
|
2017-03-28 04:34:52 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
# End /etc/rc.d/init.d/lxdm
|