[tor-commits] [flashproxy/master] auto-mkdir directories used by the initscripts

infinity0 at torproject.org infinity0 at torproject.org
Thu Nov 21 13:18:47 UTC 2013


commit 60cae9bc22834538d8fc5f3c1731b9415dc66477
Author: Ximin Luo <infinity0 at gmx.com>
Date:   Mon Nov 18 19:45:44 2013 +0000

    auto-mkdir directories used by the initscripts
---
 facilitator/Makefile.am |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/facilitator/Makefile.am b/facilitator/Makefile.am
index 784ec2d..58872a4 100644
--- a/facilitator/Makefile.am
+++ b/facilitator/Makefile.am
@@ -122,6 +122,9 @@ remove-symlinks:
 
 install-daemon:
 if DO_INITSCRIPTS
+# initscripts use these directories for logs and runtime data
+	mkdir -p $(localstatedir)/log
+	mkdir -p $(localstatedir)/run
 	for i in facilitator facilitator-email-poller facilitator-reg-daemon; do \
 	  update-rc.d $$i defaults; \
 	  invoke-rc.d $$i start; \
@@ -130,6 +133,7 @@ endif
 
 remove-daemon:
 if DO_INITSCRIPTS
+# we don't rm created directories since they might be system-managed
 	for i in facilitator facilitator-email-poller facilitator-reg-daemon; do \
 	  invoke-rc.d $$i stop; \
 	  update-rc.d $$i remove; \





More information about the tor-commits mailing list