diff --git a/ayarlar/servisler/Makefile b/ayarlar/servisler/Makefile index a26139731..3bec2ff1e 100644 --- a/ayarlar/servisler/Makefile +++ b/ayarlar/servisler/Makefile @@ -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 @@ -860,6 +870,16 @@ sil-lxdm: rm -f ${EXTDIR}/rc.d/rc4.d/K05lxdm 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 diff --git a/ayarlar/servisler/mbd/init.d/mdm b/ayarlar/servisler/mbd/init.d/mdm new file mode 100644 index 000000000..af7bb4fe7 --- /dev/null +++ b/ayarlar/servisler/mbd/init.d/mdm @@ -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