consolewd / daemon

Anyone would know how consolewd could be run as a daemon, i.e. startup at boot and running in the background?

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:

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?

that looks like a path issue

I made a short bash script to start consolewd from its own subdirectory. This solved the path issue.

You can try to put in daemon mode with “sudo ./consolewd > /dev/null 2>&1 &”