Skip to content

Commit

Permalink
forgot the rc.subr version of stop script
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwall committed Jul 4, 2024
1 parent 67a0911 commit b01e628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/weewx_data/util/init.d/weewx.bsd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ load_rc_config $name
: ${weewx_enable="NO"}
: ${weewx_daemon="/usr/local/weewx/bin/weewxd"}
: ${weewx_pid="/var/run/weewx.pid"}
: ${weewx_config=/usr/local/etc/weewx/weewx.conf"}
: ${weewx_config="/usr/local/etc/weewx/weewx.conf"}

command=${weewx_daemon}
procname=${weewx_procname:-/usr/local/bin/python3}
Expand All @@ -45,9 +45,9 @@ weewx_start() {
}

weewx_stop() {
if [ -f ${weewx_pid} ]; then
if check_pidfile ${weewx_pid} ${weewx_daemon} ; then
echo "stopping ${name}"
kill `cat ${weewx_pid}`
pkill -F "${weewx_pid}"
else
echo "${name} is not running"
exit 1
Expand Down

0 comments on commit b01e628

Please sign in to comment.