trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject git commit: TS-1275 Fix startup problem where /var is on a volatile disk. Author: Eric Connell.
Date Mon, 28 May 2012 00:43:18 GMT
Updated Branches:
  refs/heads/master 8ab91547b -> f2c92ef01


TS-1275 Fix startup problem where /var is on a volatile disk.
Author: Eric Connell.


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f2c92ef0
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f2c92ef0
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f2c92ef0

Branch: refs/heads/master
Commit: f2c92ef01ad24165715748a0b76165f9ab8999c2
Parents: 8ab9154
Author: Eric Connell <econnell>
Authored: Sun May 27 18:40:26 2012 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Sun May 27 18:40:26 2012 -0600

----------------------------------------------------------------------
 rc/trafficserver.conf.in |   10 +++++++++-
 rc/trafficserver.in      |    6 +++++-
 2 files changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f2c92ef0/rc/trafficserver.conf.in
----------------------------------------------------------------------
diff --git a/rc/trafficserver.conf.in b/rc/trafficserver.conf.in
index e949b72..9c6d956 100644
--- a/rc/trafficserver.conf.in
+++ b/rc/trafficserver.conf.in
@@ -31,4 +31,12 @@ stop on runlevel [06]
 expect fork
 respawn
 
-exec @exp_bindir@/traffic_cop &
+pre-start script
+	if [ ! -d @exp_runtimedir@ ]
+	then
+		mkdir -p @exp_runtimedir@
+		chown @pkgsysuser@:@pkgsysgroup@ @exp_runtimedir@
+	fi
+end script
+
+exec @exp_bindir@/traffic_cop

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f2c92ef0/rc/trafficserver.in
----------------------------------------------------------------------
diff --git a/rc/trafficserver.in b/rc/trafficserver.in
index 874f442..fead003 100644
--- a/rc/trafficserver.in
+++ b/rc/trafficserver.in
@@ -153,6 +153,11 @@ test -f /lib/lsb/init-functions && . /lib/lsb/init-functions
 # with native OS rc.subr(8) features.
 test -f /etc/rc.subr && . /etc/rc.subr
 
+if [ ! -d @exp_runtimedir@ ]
+then
+	mkdir -p @exp_runtimedir@
+	chown @pkgsysuser@:@pkgsysgroup@ @exp_runtimedir@
+fi
 
 #
 # Fedora:
@@ -442,4 +447,3 @@ case "$1" in
         exit 3
         ;;
 esac
-


Mime
View raw message