OpengateM Source Repository
Revision | 78b23ffb83b39454be80172adc892ffbda006e24 (tree) |
---|---|
Time | 2016-06-27 09:52:48 |
Author | watanaby <watanaby@user...> |
Commiter | watanaby |
auto stop/start of daemon at installation
@@ -38,22 +38,26 @@ opengatemd: ${OBJS} ${MDMAINPROGO} ${LIBOPT} | ||
38 | 38 | |
39 | 39 | ezxml: |
40 | 40 | ${MAKE} -C ../ezxml |
41 | + | |
41 | 42 | clean: |
42 | 43 | rm -f ${MDMAINPROG} ${CLEANFILES} |
43 | 44 | ${MAKE} clean -C ../ezxml |
44 | - rm -f *~ ../*/*~ ../*~ ../*/*/*~ #remove emacs backup | |
45 | - rm -f \#* ../*/\#* ../\#* ../*/*/\#* #remove emacs autosave | |
45 | + rm -f *~ ../*/*~ ../*~ ../*/*/*~ | |
46 | + rm -f \#* ../*/\#* ../\#* ../*/*/\#* | |
46 | 47 | |
48 | +install: stop-md install-md install-conf rm-lockfile start-md | |
47 | 49 | |
50 | +stop-md: # | |
51 | + opengatemd -s | |
48 | 52 | |
49 | -install: install-md-prg install-conf rm-lockfile | |
53 | +start-md: # | |
54 | + opengatemd | |
50 | 55 | |
51 | 56 | rm-lockfile: # |
52 | 57 | rm -f /tmp/opengatemd.lock |
53 | 58 | rm -f /tmp/opengate.lock |
54 | 59 | |
55 | -install-md-prg: ${MDMAINPROG} | |
56 | - ## Install program and Set S bit ## | |
60 | +install-md: ${MDMAINPROG} ## Install program and Set S bit ## | |
57 | 61 | .if !exists(${INSTALLBINPATH}) |
58 | 62 | mkdir ${INSTALLBINPATH} |
59 | 63 | .endif |
@@ -61,10 +65,8 @@ install-md-prg: ${MDMAINPROG} | ||
61 | 65 | chmod 4755 ${INSTALLBINPATH}/${MDMAINPROG} |
62 | 66 | cp ../rc.d/${MDMAINPROG} /etc/rc.d/${MDMAINPROG} |
63 | 67 | chmod 555 /etc/rc.d/${MDMAINPROG} |
64 | - # | |
65 | 68 | |
66 | -install-conf: | |
67 | - ## Copy Config files ## | |
69 | +install-conf: ## Copy Config files ## | |
68 | 70 | .if !exists(${CONFIGPATH}) |
69 | 71 | mkdir ${CONFIGPATH} |
70 | 72 | .endif |