From 0fb55476f320e95b0efab0a34842005aa45ccdeb Mon Sep 17 00:00:00 2001
From: Tom Keffer
Weewx will then start monitoring LOOP data, printing a short version of the received data on standard output, about once every two seconds.
+You can tell a running instance of weewx to reread +its configuration file by sending it the HUP signal. +First run ps to find out the Process ID (PID) number +of the instance, then send it the HUP signal:
+ps -a # Note the +PID of the weewxd.py process
+kill -HUP pid # Send it a HUP signal
For unattended operations it is best to have weewx run as a daemon, started automatically when the server is rebooted. Start by selecting the appropriate run script. They can be found under @@ -938,8 +945,11 @@ run at run levels 2, 3, 4 and 5. Incidentally, a nice tool for setting run level with Debian (Ubuntu) systems is sysv-rc-conf. It uses a curses interface to allow you to change easily which run level any of your daemons runs at. There is a similar tool on SuSE. From the start menu run the -YAST Control Center, then look for Systesm Services (Runlevel). Pick "Expert" mode +YAST Control Center, then look for Systems Services (Runlevel). Pick "Expert" mode to see the run levels.
+You can also tell weewx to reread its configuration +file without stopping by using the 'reload' option:
+/etc/init.d/weewx reload
The sqlite3 archive database used by weewx (nominally, diff --git a/start_scripts/Debian/weewx b/start_scripts/Debian/weewx index fdcad4c7..b1e9d646 100755 --- a/start_scripts/Debian/weewx +++ b/start_scripts/Debian/weewx @@ -93,7 +93,7 @@ do_reload() { # restarting (for example, when it is sent a SIGHUP), # then implement that here. # - start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE return 0 } @@ -114,16 +114,16 @@ case "$1" in 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; - #reload|force-reload) + reload|force-reload) # # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # - #log_daemon_msg "Reloading $DESC" "$NAME" - #do_reload - #log_end_msg $? - #;; - restart|force-reload) + log_daemon_msg "Reloading $DESC" "$NAME" + do_reload + log_end_msg $? + ;; + restart) # # If the "reload" option is implemented then remove the # 'force-reload' alias diff --git a/start_scripts/SuSE/weewx b/start_scripts/SuSE/weewx index 82bee156..8934072b 100755 --- a/start_scripts/SuSE/weewx +++ b/start_scripts/SuSE/weewx @@ -249,14 +249,14 @@ case "$1" in ## signaling, do nothing (!) # If it supports signaling: - #echo -n "Reload service weewx " - #killproc -HUP $WEEWX_BIN - #touch /var/run/WEEWX.pid - #rc_status -v + echo -n "Reload service weewx " + killproc -HUP $WEEWX_BIN + touch /var/run/WEEWX.pid + rc_status -v ## Otherwise if it does not support reload: - rc_failed 3 - rc_status -v + #rc_failed 3 + #rc_status -v ;; status) echo -n "Checking for service weewx "