MX on Linux: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
====Technical users - additional edits====
 
Look at the '''[Service]''' part of the file quoted above.
 
This states Cumulus should use root for both the user it runs under and for the group permissions it uses. If you have the technical expertise, you might choose to run MX in a different user, if your weather station type allows MX to run in a different user. If so, replace the "root" in its two locations.
 
Look at the rest of the file, the '''[Unit]''' part.
 
For releases 3.8.4 to 3.15.0: you will see one reference to '''network-online.target''' in <code>After=network-online.target</code>.
If you are a technical user, you might decide to edit this, you have to decide what is needed in your context.
 
As an example, add a blank line after <codenowiki>'''Documentation=https://cumuluswiki.org/a/Main_Page'''</codenowiki> and in that blank line, type <code>Requires= time-sync.target local-fs.target</code>. A standard raspberry pi computer does not have a real-time clock, so when you switch it on, the clock just continues from whatever the time was when it was switched off. If the computer has online access, then it can look up the correct time online and adjust its clock. We don't want MX to start until after the time has been synced, and we want the local file-system to be ready for MX to update/store files. The example extra line ensures (Requires) these events have happened before MX can start.
 
 
5,838

edits

Navigation menu