OSDN Git Service

auto stop/start of daemon at installation
authorwatanaby <watanaby@users.osdn.jp>
Mon, 27 Jun 2016 00:52:48 +0000 (09:52 +0900)
committerwatanaby <watanaby@users.osdn.jp>
Mon, 27 Jun 2016 00:52:48 +0000 (09:52 +0900)
mdsrc/Makefile

index a0ec66d..da9a18b 100644 (file)
@@ -38,22 +38,26 @@ opengatemd: ${OBJS} ${MDMAINPROGO} ${LIBOPT}
 
 ezxml: 
                ${MAKE} -C ../ezxml
+
 clean:
                rm -f ${MDMAINPROG} ${CLEANFILES}
                ${MAKE} clean -C ../ezxml
-               rm -f *~ ../*/*~  ../*~ ../*/*/*~     #remove emacs backup
-               rm -f \#* ../*/\#* ../\#* ../*/*/\#*  #remove emacs autosave
+               rm -f *~ ../*/*~  ../*~ ../*/*/*~ 
+               rm -f \#* ../*/\#* ../\#* ../*/*/\#* 
 
+install:       stop-md install-md install-conf rm-lockfile start-md
 
+stop-md:       #
+               opengatemd -s
 
-install:       install-md-prg install-conf rm-lockfile
+start-md:      #
+               opengatemd
 
 rm-lockfile:   #
                rm -f /tmp/opengatemd.lock
                rm -f /tmp/opengate.lock
 
-install-md-prg:        ${MDMAINPROG}
-               ## Install program and Set S bit ##
+install-md:    ${MDMAINPROG}   ## Install program and Set S bit ##
 .if !exists(${INSTALLBINPATH})
                mkdir ${INSTALLBINPATH}
 .endif
@@ -61,10 +65,8 @@ install-md-prg:      ${MDMAINPROG}
                chmod 4755 ${INSTALLBINPATH}/${MDMAINPROG}
                cp ../rc.d/${MDMAINPROG} /etc/rc.d/${MDMAINPROG}
                chmod 555 /etc/rc.d/${MDMAINPROG}
-               #
 
-install-conf:
-               ## Copy Config files ##
+install-conf:  ## Copy Config files ##
 .if !exists(${CONFIGPATH})
                mkdir ${CONFIGPATH}
 .endif