Commit 392a7ab2 authored by François Grisez's avatar François Grisez

logrotate: adapt postrotate script for /bin/sh

parent c7f5308d
Pipeline #5871 passed with stages
in 39 minutes and 5 seconds
......@@ -7,12 +7,10 @@
maxage 7
nodateext
postrotate
for procname in flexisip-{proxy,presence,conference}; do
pidfile="/var/run/${procname}.pid"
if [ -f ${pidfile} ]; then
kill -HUP $(cat ${pidfile})
fi
done
logfilename="$(basename $1)"
pidfile="/var/run/${logfilename%.log}.pid"
if [ -f "${pidfile}" ]; then
kill -HUP $(cat ${pidfile})
fi
endscript
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment