mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Remove old logfile before start
This commit is contained in:
parent
a2df0a1bc7
commit
7dd07954aa
@ -635,6 +635,10 @@ echo $$ > ${pid_file}
|
||||
|
||||
trap _exit 1 2 15 EXIT
|
||||
|
||||
if [ "${action}" != "upgrade" -a -f "${logfile}" ]; then
|
||||
rm -f ${logfile}
|
||||
fi
|
||||
|
||||
if [ -n "${progress_fifo}" ]; then
|
||||
if [ ! -e "${progress_fifo}" ]; then
|
||||
mkfifo ${progress_fifo}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user