Module: sems
Branch: master
Commit: 27748e463efbd024e99b0d9a021d1f66c0d120c5
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=27748e463efbd024e99b0d9a021d1f66c0d120c5

Author: Carsten Bock <[email protected]>
Committer: Carsten Bock <[email protected]>
Date:   Sat Mar 22 22:22:22 2014 +0100

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

---

 pkg/debian/sems.default |    1 +
 pkg/debian/sems.init    |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/pkg/debian/sems.default b/pkg/debian/sems.default
index 7448e06..bca6dba 100644
--- a/pkg/debian/sems.default
+++ b/pkg/debian/sems.default
@@ -25,6 +25,7 @@ SEMS_GROUP="sems"
 
 # ser pidfile
 SEMS_PIDFILE="/var/run/sems/sems.pid"
+HOMEDIR=/var/run/sems
 
 # set if you want to create core files
 #DEBCONF-CREATE_CORE-START
diff --git a/pkg/debian/sems.init b/pkg/debian/sems.init
index 6183e96..3dc7904 100644
--- a/pkg/debian/sems.init
+++ b/pkg/debian/sems.init
@@ -51,6 +51,11 @@ if ! test -f $DAEMON ; then
   exit 0
 fi
 
+# /var/run can be a tmpfs
+if [ ! -d $HOMEDIR ]; then
+    mkdir -p $HOMEDIR
+fi
+
 LD_LIBRARY_PATH=/usr/lib/sems
 export LD_LIBRARY_PATH
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to