Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: src/cashew.conf

Issue 3036032: Create cashew log directory from pre-start stanza in upstart script. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cashew.conf
diff --git a/src/cashew.conf b/src/cashew.conf
index c1d300100d0c0fce89cbeeda53dbc57268f81670..f01ed906a41cf313959322f881a7ffe0ee34b329 100644
--- a/src/cashew.conf
+++ b/src/cashew.conf
@@ -4,7 +4,10 @@
# cashew upstart job
+env CASHEW_LOGDIR=/var/log/cashew
+
start on started flimflam
stop on starting halt or starting reboot
respawn
-exec /usr/sbin/cashewd --log_dir=/var/log/cashew --logbuflevel=-1
+pre-start exec mkdir -p -m 0755 $CASHEW_LOGDIR
+exec /usr/sbin/cashewd --log_dir=$CASHEW_LOGDIR --logbuflevel=-1
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698