1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

Remove mrtg lock and pid files before starting daemon.

Submitted by:	Jan Srzednicki <w@expro.pl>
This commit is contained in:
Dmitry Sivachenko 2006-02-15 18:16:02 +00:00
parent d780a2a87b
commit 16eb0c600c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156131

View File

@ -22,9 +22,16 @@ load_rc_config $name
: ${mrtg_daemon_flags="--pid-file $mrtg_daemon_pidfile --lock-file /var/run/mrtg/lockfile --confcache-file /var/run/mrtg/confcache --user $mrtg_daemon_user --group $mrtg_daemon_user --daemon $mrtg_daemon_config"}
start_precmd="mrtg_daemon_precmd"
command="%%PREFIX%%/bin/mrtg"
command_interpreter="%%PERL%%"
pidfile=${mrtg_daemon_pidfile}
mrtg_daemon_precmd()
{
rm -f /var/run/mrtg/lockfile /var/run/mrtg/confcache $mrtg_daemon_pidfile
}
run_rc_command "$1"