Browse code

b/f: packaging: Create /var/run/sems/ if it does not exist

Carsten Bock authored on 22/03/2014 21:22:22
Showing 2 changed files
... ...
@@ -25,6 +25,7 @@ SEMS_GROUP="sems"
25 25
 
26 26
 # ser pidfile
27 27
 SEMS_PIDFILE="/var/run/sems/sems.pid"
28
+HOMEDIR=/var/run/sems
28 29
 
29 30
 # set if you want to create core files
30 31
 #DEBCONF-CREATE_CORE-START
... ...
@@ -51,6 +51,11 @@ if ! test -f $DAEMON ; then
51 51
   exit 0
52 52
 fi
53 53
 
54
+# /var/run can be a tmpfs
55
+if [ ! -d $HOMEDIR ]; then
56
+    mkdir -p $HOMEDIR
57
+fi
58
+
54 59
 LD_LIBRARY_PATH=/usr/lib/sems
55 60
 export LD_LIBRARY_PATH
56 61