In recent months I have run mx in screen, and prior to that via the start/stop management script. Today I decided to try running it as a service using the instructions Mark provided with the b3090 announcement (I'm using the latest b3093). I'm logged on as a regular user (ie not root), go to the CumulusMX directory, and use
sudo mono-service -l:/var/run/cmx.pid CumulusMX.exe -service.
It starts as expected, with everything working fine. I can then shut it down with
sudo kill `sudo cat /var/run/cmx.pid`
(both "sudo's" seem to be required). The log files indicate the shutdown.
Then the problem - I try and start MX again with the same command (ie sudo mono-service -l:/var/run/cmx.pid CumulusMX.exe -service) but nothing seems to happen. Only a reboot allows this method to work again (although I can simply use the standard sudo mono CumulusMX.exe successfully).
The only thing that is clear is that I don't understand what I am doing. I'd be grateful if someone could point me in the right direction.
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
CumulusMX as a service
Moderator: mcrossley
- HansR
- Posts: 6926
- Joined: Sat 20 Oct 2012 6:53 am
- Weather Station: GW1100 (WS80/WH40)
- Operating System: Raspberry OS/Bookworm
- Location: Wagenborgen (NL)
- Contact:
Re: CumulusMX as a service
Check the log file, that is most probable because the lockfile (the pid file) still exists.
In the init.d procedure delivered in the distribution - see release notes - it does actually delete the lockfile.
The way you do it, you must do it manually.
So I would advise you to use the procedure given by the distribution (manually or through init.d) or use systemd as a most recent discussion showed.
In the init.d procedure delivered in the distribution - see release notes - it does actually delete the lockfile.
The way you do it, you must do it manually.
So I would advise you to use the procedure given by the distribution (manually or through init.d) or use systemd as a most recent discussion showed.
Hans
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: CumulusMX as a service
Hans, thanks.HansR wrote: ↑Mon 31 Aug 2020 8:20 am Check the log file, that is most probable because the lockfile (the pid file) still exists.
In the init.d procedure delivered in the distribution - see release notes - it does actually delete the lockfile.
The way you do it, you must do it manually.
So I would advise you to use the procedure given by the distribution (manually or through init.d) or use systemd as a most recent discussion showed.
There is no log file produced when run a second time.
And I tried the init.d script first - it didn't behave well in my hands, so I went back to square one and tried the "manual" procedure as described in the release.
And there doesn't seem to be a lock file. From the init.d script I expect it to be /tmp/cmx.pid but that doesn't exist
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: CumulusMX as a service
aha ... I see the lock file is in /var/run
I will explore further
I will explore further
-
freddie
- Posts: 2870
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 24.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: CumulusMX as a service
Hi Billy,
Take a look at this post. No need for a script or to worry about removing the lock file. Just a simple config file in which you put in the location of your MX installation.
Take a look at this post. No need for a script or to worry about removing the lock file. Just a simple config file in which you put in the location of your MX installation.
- billy
- Posts: 260
- Joined: Mon 30 Nov 2015 10:54 am
- Weather Station: WLL / Davis VP2+
- Operating System: RPi-4 bookworm
- Location: Gooseberry Hill, Western Australia
Re: CumulusMX as a service
Hi Freddie,
That's fantastic - thank you very much. It worked wonders - like a gentle breeze on a hot summer's day (which is about 4 months away for me - well the hot bit, probably not the gentle breeze)
I haven't automated backups since I went to screen so I look forward to seeing some ideas about this in the near future 
That's fantastic - thank you very much. It worked wonders - like a gentle breeze on a hot summer's day (which is about 4 months away for me - well the hot bit, probably not the gentle breeze)