maccampb
New Member
Posts: 21
Raspberry Pi: Yes
Other Device: Linux on X64, Particle Photon, MAC
|
Post by maccampb on Feb 10, 2022 12:24:35 GMT -8
Hello All, I spent some time to set up a systemd set of services for the SkyWeather2 and Dash apps on the RPI. This implementation assumes the use of the SD Card setup from SDL and has instructions on how to install and manage the services. Systemd offers a suite of commands to manage and get the status on the running programs. This updates the startup process to use the systemd daemon to start and monitor the SkyWeather2 programs. If you use the rc.local method, you'll need to back all those changes out or they will conflict. Instructions and necessary files are located at: github.com/maccampb/SkyWeather2Daemons.gitLet me know if you find this useful or have any questions on getting this going. MAC
|
|
|
Post by SDL on Feb 10, 2022 15:12:59 GMT -8
Love it!
|
|
|
Post by mauriceatkinson on May 31, 2022 9:18:51 GMT -8
Hi MAC I used your setup to create a service but ran into an issue that I have posted onto your github page.
|
|
maccampb
New Member
Posts: 21
Raspberry Pi: Yes
Other Device: Linux on X64, Particle Photon, MAC
|
Post by maccampb on Jun 1, 2022 9:00:10 GMT -8
Thanks for your help! I’ve updated the instructions and the .service file to fix the errors.
|
|
|
Post by mauriceatkinson on Oct 24, 2022 13:34:07 GMT -8
Hi I have just installed a new skyweather and used your code again to start skyweather2 as a service. However this is the message I receive when running the status command. I believe I have followed your instructions to the letter but cannot for the life of my work out what I am doing wrong??
pi@Skyweather2:~ $ sudo systemctl status skyweather2 ● skyweather2.service - Service File to manage the skyweather2 service Loaded: loaded (/etc/systemd/system/skyweather2.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Mon 2022-10-24 21:58:58 BST; 7s ago Process: 18571 ExecStart=/home/pi/bin/skyweather2exec.sh (code=exited, status=200/CHDIR) Main PID: 18571 (code=exited, status=200/CHDIR)
|
|