MT#7399 create SEMS_CACHEDIR

mr3.3.1
Victor Seva 12 years ago
parent 11cdf71dd6
commit 3e828eb6c6
Notes: Jenkins User 11 years ago
jenkins_trigger: false

@ -0,0 +1,3 @@
var/cache/sems
var/cache/sems/audio_cache
var/cache/sems/callingcard

@ -35,3 +35,5 @@ SEMS_CREATE_CORE="yes"
SEMS_COREDIR="/var/cores"
#DEBCONF-COREDIR-END
SEMS_CACHEDIR="/var/cache/sems"
SEMS_CACHEDIR_EXTRADIRS="audio_cache callingcard"

16
debian/sems.init vendored

@ -10,6 +10,7 @@
# Short-Description: Start/stop SEMS Application Server
### END INIT INFO
SEMS_CACHEDIR="/var/cache/sems"
# read configuration from /etc/default/sems file
if test -f /etc/default/sems ; then
@ -28,6 +29,21 @@ DESC=sems
PARAMS=""
if ! test -d $SEMS_CACHEDIR ; then
mkdir -p $SEMS_CACHEDIR
fi
for dir in $SEMS_CACHEDIR_EXTRADIRS ; do
if ! test -d ${SEMS_CACHEDIR}/${dir} ; then
mkdir -p ${SEMS_CACHEDIR}/${dir}
fi
done
if ! test -d $SEMS_RUNDIR ; then
mkdir -p $SEMS_RUNDIR
fi
chown -R $SEMS_USER:$SEMS_GROUP $SEMS_RUNDIR $SEMS_CACHEDIR
if test "$SEMS_PIDFILE" ; then
PARAMS="$PARAMS -P $SEMS_PIDFILE"
fi

Loading…
Cancel
Save