fixed core file directory

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@869 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent 1024e2f008
commit 8f144f7441

2
debian/changelog vendored

@ -1,4 +1,4 @@
sems (1.0.0-0pre1) unstable; urgency=low
sems (1.0.0-0pre1-r856M) unstable; urgency=low
* Debian Release Candidate 1 for 1.0.

4
debian/files vendored

@ -1,2 +1,2 @@
sems_0.8.7.6-1_i386.deb net optional
sems-python-modules_0.8.7.6-1_i386.deb net optional
sems_1.0.0-0pre1-r856M_amd64.deb net optional
sems-python-modules_1.0.0-0pre1-r856M_amd64.deb net optional

13
debian/postinst vendored

@ -139,10 +139,17 @@ fi
#+++
#fi
db_get sems/KERNEL_CORE_PID
db_get sems/CREATE_CORE
if test "$RET" != "!" ; then
fn_config_replace $DEFAULTFILE KERNEL_CORE_PID <<+++
SEMS_KERNEL_CORE_PID="$RET"
fn_config_replace $DEFAULTFILE CREATE_CORE <<+++
SEMS_CREATE_CORE="$RET"
+++
fi
db_get sems/COREDIR
if test "$RET" != "!" ; then
fn_config_replace $DEFAULTFILE COREDIR <<+++
SEMS_COREDIR="$RET"
+++
fi

@ -18,12 +18,9 @@ db_go
db_input medium sems/GROUP || true
db_go
#db_input medium sems/WORKDIR || true
#db_go
db_input medium sems/KERNEL_CORE_PID || true
db_input medium sems/CREATE_CORE || true
db_go
db_input medium sems/MEMORY || true
db_input medium sems/COREDIR || true
db_go

@ -23,17 +23,12 @@ SEMS_GROUP="sems"
# ser pidfile
SEMS_PIDFILE="/var/run/sems/sems.pid"
# working dir (cores will be placed there in case of sems crash)
#DEBCONF-WORKDIR-START
#SEMS_WORKDIR="/var/cores"
#DEBCONF-WORKDIR-END
# set if you want kernel flag to use pid for core files
#DEBCONF-KERNEL_CORE_PID-START
#SEMS_KERNEL_CORE_PID="yes"
#DEBCONF-KERNEL_CORE_PID-END
# set if you want to create core files
#DEBCONF-CREATE_CORE-START
SEMS_CREATE_CORE="yes"
#DEBCONF-CREATE_CORE-END
#DEBCONF-COREDIR-START
SEMS_COREDIR="/var/cores"
#DEBCONF-COREDIR-END

15
debian/sems.init vendored

@ -41,15 +41,12 @@ if test "$SEMS_CFG_FILE" ; then
CFGPARAMS="-f $SEMS_CFG_FILE"
fi
#if test "$SEMS_WORKDIR" ; then
# PARAMS="$PARAMS -w $SEMS_WORKDIR"
# # try to create the working dir
# mkdir -p $SEMS_WORKDIR || echo "Warning: error creating SEMS working dir $SEMS_WORKDIR"
#fi
if test "$SEMS_KERNEL_CORE_PID" = "true" ; then
# enable using pid for cores
echo 1 > /proc/sys/kernel/core_uses_pid || echo "Warning: error when enabling /proc/sys/kernel/core_uses_pid"
if test "$SEMS_CREATE_CORE" = "true" ; then
# directory for the core dump files
[ -d $SEMS_COREDIR ] || mkdir $SEMS_COREDIR
chmod 777 $SEMS_COREDIR
echo "$SEMS_COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
ulimit -c unlimited
fi
if ! test -f $DAEMON ; then

@ -31,11 +31,14 @@ Description: Group to run SEMS as
.
Enter "!" to not modify this option.
Template: sems/KERNEL_CORE_PID
Template: sems/CREATE_CORE
Type: boolean
Default: false
Description: Set kernel to use pid for core files
If enabled the '/proc/sys/kernel/core_uses_pid' will be set to '1' before starting SEMS,
to enable using of pid for core files creation. If disabled nothing will be set.
For debugging purposes it is recommended to enable this option.
Description: Create core files
If enabled, core files will be created in the event of a crash.
Template: sems/COREDIR
Type: string
Default: /var/cores
Description: Set directory for core files
This is the directory where core files will be created.

Loading…
Cancel
Save