MX on Linux: Difference between revisions

1,362 bytes added ,  09:31, 21 April 2021
Line 586: Line 586:
Note that you ''may'' need to supply your administrator password after typing the 'sudo ...' command line. The system will prompt you for this if it is needed.
Note that you ''may'' need to supply your administrator password after typing the 'sudo ...' command line. The system will prompt you for this if it is needed.


=== Running as a service ===
=== Setting up as a service ===
 
Unless you are running a very old release, MX has ability to run as a service.
 
#There is a task to do just once to configure the service
#Find the '''CumulusMX/MXutils/linux/''' subfolder within what we will call EXISTING PATH, that might be in home directory and therefore found using "~" as explained elsewhere on this page
#* At time of typing this, the subfolder only contains one file, the one we need to edit
# Use <tt>sudo nano cumulusmx.service</tt> to edit the service configuration file
# Look for '''ExecStart=/usr/bin/mono-service -d:''''
#* Replace the path that follows the above text with the path to your CumulusMX.exe, add the -service and optionally add any other parameter (e.g. -debug, -locale) as described for simple MX running
#save file
#now copy file <tt>sudo cp EXISTING_PATH/CumulusMX/MXutils/linux/cumulusmx.service /etc/systemd/system/</tt>
 
If you upgrade to a new release, the file in EXISTING PATH will be overwritten, but the critical file in "/etc/sytemd/system" will not be affected.
 
====Running as a service===
 
If you want MX to automatically start when your Linux computer is booted, just type <tt>sudo systemctl enable cumulusmx</tt> once, and it will be activated on each reboot.
 
To manually start MX as a service, (such as after any MX upgrade to a new release, or when you want to first run it), simply type <tt>sudo systemctl start cumulusmx</tt>


(awaiting someone to explain this)


Use <tt>systemctl status cumulusmx.service</tt> in a terminal session to see status of Cumulus service
Use <tt>systemctl status cumulusmx.service</tt> in a terminal session to see status of Cumulus service
5,838

edits