From: Amos Jeffries Date: Tue, 27 Apr 2010 12:23:15 +0000 (+1200) Subject: Ensure the PID file directory exists on install. X-Git-Tag: SQUID_3_2_0_1~263 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc094bdd6e4309707dd3ef0ab93da38dec5511d2;p=thirdparty%2Fsquid.git Ensure the PID file directory exists on install. /var/run may not be the location installed to now and squid -k signals will not work if the PID file cannot be opened due to missing diretories. --- diff --git a/src/Makefile.am b/src/Makefile.am index bc6c17ebe6..8a861b9a8b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -850,7 +850,8 @@ install-data-local: install-sysconfDATA install-dataDATA $(INSTALL_DATA) squid.conf.default $(DESTDIR)$(DEFAULT_CONFIG_FILE).default; \ echo "$(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented"; \ $(INSTALL_DATA) squid.conf.documented $(DESTDIR)$(DEFAULT_CONFIG_FILE).documented; \ - $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX) + $(mkinstalldirs) $(DESTDIR)$(DEFAULT_LOG_PREFIX); \ + $(mkinstalldirs) $(DESTDIR)`dirname $(DEFAULT_PIDFILE)` uninstall-local: squid.conf.default @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default