1.2 Rev1: Fix pidfile use

This commit is contained in:
yo 2023-08-21 17:34:30 +02:00
parent d4ecc319bb
commit 8fc1d0305e
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
PORTNAME= carp_exporter
DISTVERSIONPREFIX= v
DISTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= https://git.nosd.in/yo/carp_exporter/archive/
DISTNAME= ${DISTVERSIONPREFIX}${DISTVERSION}

View File

@ -31,7 +31,7 @@ load_rc_config $name
command="python3"
command_args="/usr/local/bin/carp_exporter.py > ${carp_exporter_logfile} 2>&1"
start_cmd="/usr/sbin/daemon -u ${carp_exporter_user} ${command} ${command_args}"
start_cmd="/usr/sbin/daemon -u ${carp_exporter_user} -p ${carp_exporter_pidfile} ${command} ${command_args}"
start_precmd="${name}_prestart"
carp_exporter_prestart()