Skip to content

Instantly share code, notes, and snippets.

@CGaskell
Created February 10, 2021 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CGaskell/182db8e1c8c1afa91558225afab4a4db to your computer and use it in GitHub Desktop.
Save CGaskell/182db8e1c8c1afa91558225afab4a4db to your computer and use it in GitHub Desktop.
Run CumulusMX as service on RaspberryPi
[Unit]
Description=CumulusMX
Documentation=https://cumuluswiki.org/a/Main_Page
After=network-online.target
[Service]
User=root
Group=root
ExecStart=/usr/bin/mono-service -/home/pi/CumulusMX CumulusMX.exe -service
Type=forking
ExecStopPost=/bin/rm /tmp/CumulusMX.exe.lock
[Install]
WantedBy=multi-user.target
============
- Edit the configuration above and change the path to match your Cumulus MX installation folder
- Copy cumulusmx.service to your /etc/systemd/system/ folder
- Cumulus can then be started and stopped with the following commands:
> systemctl start cumulusmx
> systemctl stop cumulusmx
- Status and restart are available too:
> systemctl restart cumulusmx
> systemctl status cumulusmx
- If you make a change to the unit file, you need to run the following command so that systemd re-reads your file:
> systemctl daemon-reload
- To have Cumulus start on reboot, issue the following command:
> systemctl enable cumulusmx
- Finally, to stop the service running on reboot, use the following:
> systemctl disable cumulusmx
@elTrauko
Copy link

It doesn't work, it gives me those codes.
Previously I had a CumulusMX installation as a service that worked immediately and very easily but I can't find how I did it or where it came from.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment