mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-18 05:00:03 +02:00
scripts/templates/rc.conf: pass "-p" flag (create pidfile) to program.
This commit is contained in:
parent
e0c7cfcc62
commit
56cddd8e24
1 changed files with 2 additions and 3 deletions
|
|
@ -15,10 +15,10 @@
|
|||
|
||||
name="{{ RC_NAME }}"
|
||||
desc="{{ DESCRIPTION }}"
|
||||
command="{{ PROGRAM }}"
|
||||
command_args="${eosio_api_healthcheck_args}"
|
||||
logfile="${eosio_api_healthcheck_logfile:-/var/log/${name}.log}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
command="{{ PROGRAM }}"
|
||||
command_args="-p ${pidfile} ${eosio_api_healthcheck_args}"
|
||||
|
||||
start_cmd="${name}_start"
|
||||
stop_cmd="${name}_stop"
|
||||
|
|
@ -27,7 +27,6 @@ eosio_api_healthcheck_start()
|
|||
{
|
||||
echo "Starting ${name}"
|
||||
${command} ${command_args} >>${logfile} 2>&1 &
|
||||
echo $! > ${pidfile}
|
||||
}
|
||||
|
||||
eosio_api_healthcheck_stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue