Skip to content
Snippets Groups Projects
Commit 7d097fa4 authored by Stuart D. Gathman's avatar Stuart D. Gathman
Browse files

start.sh superceded by daemonize on EL6 and systemd elsewhere.

parent ca81502c
Branches
Tags
No related merge requests found
#!/bin/sh
appname="$1"
script="${2:-${appname}}"
datadir="/var/lib/milter"
logdir="/var/log/milter"
piddir="/var/run/milter"
libdir="/usr/lib/pymilter"
python="python2.4"
exec >>${logdir}/${appname}.log 2>&1
if test -s ${datadir}/${script}.py; then
cd ${datadir} # use version in data dir if it exists for debugging
elif test -s ${logdir}/${script}.py; then
cd ${logdir} # use version in log dir if it exists for debugging
else
cd ${libdir}
fi
${python} ${script}.py &
echo $! >${piddir}/${appname}.pid
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment