update for xinetd support

Fix typo in xinetd configuration directory.
Restart xinetd during installation or uninstallation if
xinetd is installed.
This commit is contained in:
morlix
2013-06-27 10:51:55 +02:00
parent 6a1cdd5fda
commit abb6ed9179
4 changed files with 19 additions and 2 deletions

View File

@@ -78,7 +78,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
cd $(DIR_APP) && tar xzf agents.tar.gz
cd $(DIR_APP) && install -v -m 755 check_mk_agent.linux /usr/bin/check_mk_agent
cd $(DIR_APP) && install -v -m 755 xinetd.conf /etc/xinet.d/check_mk_agent
-mkdir /etc/xinetd.d
cd $(DIR_APP) && install -v -m 755 xinetd.conf /etc/xinetd.d/check_mk_agent
cd $(DIR_APP) && gcc $(CFLAGS) waitmax.c -o waitmax
cd $(DIR_APP) && install -v -m 755 waitmax /usr/bin/waitmax
@rm -rf $(DIR_APP)