CumulusMX as a service
Posted: Mon 31 Aug 2020 7:15 am
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.
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.