mdm-servis.eklendi
This commit is contained in:
parent
00da5da2a6
commit
2798b87fa2
|
@ -307,6 +307,16 @@ kur-lxdm: dizinleri-olustur
|
|||
ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc5.d/S95lxdm
|
||||
ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc6.d/K05lxdm
|
||||
|
||||
kur-mdm: dizinleri-olustur
|
||||
install -m ${MODE} mbd/init.d/mdm ${EXTDIR}/rc.d/init.d/
|
||||
ln -sf ../init.d/mdm ${EXTDIR}/rc.d/rc0.d/K05mdm
|
||||
ln -sf ../init.d/mdm ${EXTDIR}/rc.d/rc1.d/K05mdm
|
||||
ln -sf ../init.d/mdm ${EXTDIR}/rc.d/rc2.d/K05mdm
|
||||
ln -sf ../init.d/mdm ${EXTDIR}/rc.d/rc3.d/K05mdm
|
||||
ln -sf ../init.d/mdm ${EXTDIR}/rc.d/rc4.d/K05mdm
|
||||
ln -sf ../init.d/mdm ${EXTDIR}/rc.d/rc5.d/S95mdm
|
||||
ln -sf ../init.d/mdm ${EXTDIR}/rc.d/rc6.d/K05mdm
|
||||
|
||||
kur-mysql: dizinleri-olustur
|
||||
install -m ${MODE} mbd/init.d/mysql ${EXTDIR}/rc.d/init.d/
|
||||
ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc0.d/K26mysql
|
||||
|
@ -861,6 +871,16 @@ sil-lxdm:
|
|||
rm -f ${EXTDIR}/rc.d/rc5.d/S95lxdm
|
||||
rm -f ${EXTDIR}/rc.d/rc6.d/K05lxdm
|
||||
|
||||
sil-mdm:
|
||||
rm -f ${EXTDIR}/rc.d/init.d/mdm
|
||||
rm -f ${EXTDIR}/rc.d/rc0.d/K05mdm
|
||||
rm -f ${EXTDIR}/rc.d/rc1.d/K05mdm
|
||||
rm -f ${EXTDIR}/rc.d/rc2.d/K05mdm
|
||||
rm -f ${EXTDIR}/rc.d/rc3.d/K05mdm
|
||||
rm -f ${EXTDIR}/rc.d/rc4.d/K05mdm
|
||||
rm -f ${EXTDIR}/rc.d/rc5.d/S95mdm
|
||||
rm -f ${EXTDIR}/rc.d/rc6.d/K05mdm
|
||||
|
||||
sil-mysql:
|
||||
rm -f ${EXTDIR}/rc.d/init.d/mysql
|
||||
rm -f ${EXTDIR}/rc.d/rc0.d/K26mysql
|
||||
|
|
|
@ -0,0 +1,47 @@
|
|||
#!/bin/sh
|
||||
# Begin /etc/rc.d/init.d/mdm
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
BIN_FILE="/usr/bin/mdm"
|
||||
DUR_BIN_FILE="/usr/bin/mdm-stop"
|
||||
YEYUKLE_BIN_FILE="/usr/bin/mdm-safe-restart"
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
log_info_msg "Yerel ayarlar eklendi..."
|
||||
yerel_ayar
|
||||
log_info_msg "MDM başlatılıyor..."
|
||||
start_daemon $BIN_FILE --nodaemon
|
||||
evaluate_retval
|
||||
;;
|
||||
|
||||
stop)
|
||||
log_info_msg "MDM durduruluyor..."
|
||||
killproc $DUR_BIN_FILE
|
||||
evaluate_retval
|
||||
;;
|
||||
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
|
||||
reload)
|
||||
log_info_msg "MDM yeniden yükleniyor..."
|
||||
killproc $YEYUKLE_BIN_FILE
|
||||
evaluate_retval
|
||||
;;
|
||||
|
||||
status)
|
||||
statusproc ${BIN_FILE}
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart|reload|status]"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# End /etc/rc.d/init.d/mdm
|
Loading…
Reference in New Issue