cloudy cloudy

Author Topic: consolewd / daemon  (Read 237 times)

0 Members and 1 Guest are viewing this topic.

Offline UW

  • Posts: 53
  • OS/Browser:
  • iOS 11.2.6
  • Safari 0.8.2
consolewd / daemon
« on: March 27, 2018, 07:04:09 AM »
Anyone would know how consolewd could be run as a daemon, i.e. startup at boot and running in the background?

Offline UW

  • Posts: 53
  • OS/Browser:
  • Mac OS X 10.13.4
  • Chrome 65.0.3325.181
Re: consolewd / daemon
« Reply #1 on: April 16, 2018, 08:29:41 PM »
I am still trying to run consolewd in the background or at startup on my synology NAS.

The problem is that if I run it using the synology task manager and if I use the command:

/volume1/web/home/consolewdfiles/./consolewd
or
/volume1/web/home/consolewdfiles/consolewd

it does startup well and collects data but then ftp does not work. I get the following error message:


Code: [Select]
Current data 22:23:45: Temperature= 11.3 Windspeed =0.0 Gustspeed =0.0 Direction =170 Humidity=84 Barometer=952.0 Daily Rain=0.0  Rain Rate 0.0mm/min
Data OK
Current data 22:23:50: Temperature= 11.3 Windspeed =0.0 Gustspeed =0.0 Direction =170 Humidity=84 Barometer=952.0 Daily Rain=0.0  Rain Rate 0.0mm/min
Data OK
Current data 22:23:55: Temperature= 11.3 Windspeed =0.0 Gustspeed =0.0 Direction =170 Humidity=84 Barometer=952.0 Daily Rain=0.0  Rain Rate 0.0mm/min
**** doing minute routines now 22:24:00
**** updating clientraw extra files
**** updating data logs
Starting cronftpreal
Error ./cronftpreal File not Found
Data OK
Current data 22:24:01: Temperature= 11.3 Windspeed =0.0 Gustspeed =0.0 Direction =170 Humidity=84 Barometer=952.0 Daily Rain=0.0  Rain Rate 0.0mm/min
Data OK
Current data 22:24:06: Temperature= 11.3 Windspeed =0.0 Gustspeed =0.0 Direction =170 Humidity=84 Barometer=952.0 Daily Rain=0.0  Rain Rate 0.0mm/min
Data OK
Current data 22:24:11: Temperature= 11.3 Windspeed =0.0 Gustspeed =0.0 Direction =170 Humidity=84 Barometer=952.0 Daily Rain=0.0  Rain Rate 0.0mm/min

Any help to this?

Offline Weather Display

  • Posts: 84,180
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 65.0.3325.181
    • Weather Display
Re: consolewd / daemon
« Reply #2 on: April 16, 2018, 08:55:57 PM »
that looks like a path issue

Offline UW

  • Posts: 53
  • OS/Browser:
  • iOS 11.3
  • Safari 0.8.2
Re: consolewd / daemon
« Reply #3 on: April 20, 2018, 08:28:18 AM »
I made a short bash script to start consolewd from its own subdirectory. This solved the path issue.

Offline vv_weather

  • Posts: 28
  • OS/Browser:
  • (Linux Mint)
  • Firefox 59.0
Re: consolewd / daemon
« Reply #4 on: May 06, 2018, 10:35:56 PM »
You can try to put in daemon mode with   "sudo ./consolewd > /dev/null  2>&1 &"

 

cumulus