Fix typo in xinetd configuration directory.
Restart xinetd during installation or uninstallation if
xinetd is installed.
usr/bin/check_mk_agent
-etc/xinet.d/check_mk_agent
+etc/xinetd.d/check_mk_agent
usr/bin/waitmax
@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)
. /opt/pakfire/lib/functions.sh
extract_files
restore_backup ${NAME}
+
+if [[ -x /usr/sbin/xinetd ]];
+then
+ if [[ -x /etc/init.d/xinetd ]]
+ then
+ /etc/init.d/xinetd restart
+ fi
+fi
. /opt/pakfire/lib/functions.sh
make_backup ${NAME}
remove_files
+
+if [[ -x /usr/sbin/xinetd ]];
+then
+ if [[ -x /etc/init.d/xinetd ]]
+ then
+ /etc/init.d/xinetd restart
+ fi
+fi