Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

RaspberryPi: CumulusMX init.d System Startup Script

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

User avatar
novy
Posts: 32
Joined: Thu 16 Feb 2017 2:37 pm
Weather Station: davis vantage vue
Operating System: Windows 7 / RASPBIAN
Location: Scotland

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by novy »

Today i formatted the sd again reinstalled RASPBIAN JESSIE only
No berryboot installed this time.
just installed vnc server for control of the pi
all working and starting at boot .

In my last install i did have the cumulusmx.sh file and the cumulusmxsh.conf in my cumulusMX directory but as you say it may have not been installed correctly

I will start over again on a fresh install of cumulusMX now .
Last edited by novy on Sat 11 Mar 2017 6:28 pm, edited 2 times in total.
jank
Posts: 239
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: FineOffset WS3080
Operating System: Debian Buster - Raspbian - Raspb
Location: Germany - nearby Kassel

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by jank »

Hiho
normally, here is nothing to install.
copy the Cumulusmx.sh and the cumulusmxsh.conf file into your CumulusMX directory
Make the cumulusmx.sh executable ---> chmod +x cumulusmx.sh
Open cumulusmx.sh with an editor (sudo nano cumulusmx.sh ) and insert the corect path to your CumulusMX installation directory in line 16
Open cumulusmxsh.conf and make some further setting changes (BAckup path, number of backups etc) and save it also
call the cumulusssmx.sh sctipt the first time --> sudo ./cumulusmx.sh -s (-s = Status) it will tell you if CumulusMX is already running)
If it it not running, you can start it by calling: sudo ./cumulusmx.sh (without any parameter) - call the script again and it will ask you to stop CumulusMX
If you want to see what else this script can do for you, use sudo ./cumulusmx.sh -h (for help)
You don
t need any graphical user interface on yourRaspberry pi anymore....just the console....no mouse ....only the keyboard :-)

Have fun........
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
User avatar
novy
Posts: 32
Joined: Thu 16 Feb 2017 2:37 pm
Weather Station: davis vantage vue
Operating System: Windows 7 / RASPBIAN
Location: Scotland

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by novy »

Ok ive done a fresh install

Followed the instructions here up to step 3
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13767

And then here from step 2 on
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=14753

Rebooted the pi and cumulus is running in background uploading data and starting at boot at last haha :)

The only things i did differently this time was not putting anything into crone e and having to remove it later .
Ive possibly not edited path_to_script in this part when i done it at first
sudo chmod +x /path_to_script/cumulusmx.sh
and i was using berryboot also yesterday.

Anyway everything is working perfect now
Cheers guys for your help much appreciated

nov.
Last edited by novy on Thu 23 Feb 2017 11:29 pm, edited 1 time in total.
User avatar
VTHokie74
Posts: 113
Joined: Tue 10 Apr 2012 12:58 am
Weather Station: Davis Vantage Pro 2
Operating System: Rasbian
Location: Ashland, KY

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by VTHokie74 »

Great to hear!
Station: Davis Vantage Pro 2/CumulusMX/Raspberry Pi 3
User avatar
VTHokie74
Posts: 113
Joined: Tue 10 Apr 2012 12:58 am
Weather Station: Davis Vantage Pro 2
Operating System: Rasbian
Location: Ashland, KY

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by VTHokie74 »

Novy

I was wondering if you had forgotten the step to make cumulusmx.sh executable the first time?
Station: Davis Vantage Pro 2/CumulusMX/Raspberry Pi 3
User avatar
novy
Posts: 32
Joined: Thu 16 Feb 2017 2:37 pm
Weather Station: davis vantage vue
Operating System: Windows 7 / RASPBIAN
Location: Scotland

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by novy »

possibly that was my problem . i do not remember editing the path the first time round :roll:

its still running anyway

all good :)
User avatar
radilly
Posts: 123
Joined: Fri 17 Jul 2015 11:01 am
Weather Station: Ambient WS-2080
Operating System: Raspberry Pi 3, OS Buster Lite
Location: McMurray, PA, US
Contact:

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by radilly »

In case anyone else runs into a nursery-size warning, i.e.

Code: Select all

Warning: Degraded allocation. Consider increasing nursery-size if the warning persists.
I added the following line to my systemd service file

Code: Select all

[Service]
Environment=MONO_GC_PARAMS=nursery-size=8m
I was seeing the message every time I rebooted (but can't recall if a systemctl restart triggered it). Doubling the default nursery-size for mono seems to have stopped the warning without causing other issues I've noticed so far.

This is warning mentioned in
* https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=14587 - Degraded allocation warning messages
* https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=14338 - Arrgh! Network keeps randomly dropping when I run MX

Cheers,
Bob


Ref: https://stackoverflow.com/questions/184 ... g-persists
Cheers,
Bob
hillyjd
Posts: 29
Joined: Sun 23 Apr 2017 2:42 pm
Weather Station: Davis Vantage Vue
Operating System: Linux

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by hillyjd »

I'm having the same problem with "degraded allocation". What file did you modify? I can't find a systemd service file.
Mincek
Posts: 14
Joined: Mon 25 Sep 2017 7:51 am
Weather Station: wh1080
Operating System: win10/rapsberry pi 2

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by Mincek »

Hi, i have a problem with autostart :(

even if i go to manualy
sudo /etc/init.d/cumulusmx start
cumulus is not running ;/

maybe a little help ??
jank
Posts: 239
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: FineOffset WS3080
Operating System: Debian Buster - Raspbian - Raspb
Location: Germany - nearby Kassel

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by jank »

Hello

have you checked if the cumulusmx script is executable
sudo chmod +x /etc/init.d/cumulusmx

or have you made the needed changes in the top of this file to modify the path to the Cumulus Folder

CumulusMX_HOME=/CumulusMX
CumulusMX_USER=pi
NAME=CumulusMX
PIDFILE=/tmp/$NAME.pid
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
Mincek
Posts: 14
Joined: Mon 25 Sep 2017 7:51 am
Weather Station: wh1080
Operating System: win10/rapsberry pi 2

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by Mincek »

I've already done it in a different way, but thank you for your help.
Best Regards
malkie
Posts: 93
Joined: Sun 02 Jan 2011 9:38 am
Weather Station: Davis Vision-Vue
Operating System: Raspbian Jessie
Location: Stevenage, Herts, UK

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by malkie »

I know this is an old thread, so apologies for bringing it back from the dead, but I have finally managed to get my Raspberry Pi to autostart CumulusMX using this script. Other methods failed for me. So thanks to the OP for posting this.

On Wheezy I had been able to add a screen command in /etc/rc.local, but that would not work on jessie, and nor would putting a command in crontab.

All's well that ends well, except this stuff never ends..... :bash:
Malcolm
North Herts, UK
http://elm30net.ddns.net
CumulusMX on Raspberry Pi4 B+ 2GB, running on Raspbian Buster booting from USB SSD
from a Davis Vantage Vue with VP2 ISS.
jank
Posts: 239
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: FineOffset WS3080
Operating System: Debian Buster - Raspbian - Raspb
Location: Germany - nearby Kassel

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by jank »

Hello Malkie

if you have so much trouble screening CumulusMX, why are you not using the Cumulus MX Start/Stop Script ?
viewtopic.php?f=27&t=13767#p107130

Once Cumulus MX is started, you can completely manage CumulusMX even if it is running screened.
You can manage Backup of your Pie with DD , or gzip to an exteral drive and much more ......

Try it out....
Jan
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
Barpm
Posts: 14
Joined: Tue 02 Jun 2020 8:44 pm
Weather Station: WMR200
Operating System: Raspberry OS buster

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by Barpm »

Hi,
the script works well, CumulusMx is running, but /etc/init.d/cumulusmx status return this:

giu 11 22:25:01 CumulusMX init.d-Script: CumulusMX is being started at system boot within 0 seconds
Checking CumulusMX... grep: 2411: File o directory non esistente
Process dead but pidfile exists

Code: Select all

pi@raspberrypi:~ $ cat /tmp/CumulusMX.pid
484 2411
pi@raspberrypi:~ $ ps ax | grep 484
  484 ?        Sl     0:02 /usr/bin/mono /usr/lib/mono/4.5/xsp4.exe --port 8084 --address 0.0.0.0 --appconfigdir /etc/xsp4 --nonstop
 3653 pts/0    S+     0:00 grep --color=auto 484
pi@raspberrypi:~ $ ps ax | grep 2411
 2411 pts/1    Ssl+   7:57 mono /home/pi/CumulusMX/CumulusMX.exe -port 8998
 3655 pts/0    S+     0:00 grep --color=auto 2411
pi@raspberrypi:~ $ 
Why in /tmp/CumulusMX.pid there are two pid numbers?
Thanks
jank
Posts: 239
Joined: Sat 13 Jun 2015 5:57 pm
Weather Station: FineOffset WS3080
Operating System: Debian Buster - Raspbian - Raspb
Location: Germany - nearby Kassel

Re: RaspberryPi: CumulusMX init.d System Startup Script

Post by jank »

Barpm wrote: Thu 11 Jun 2020 8:38 pm Hi,
the script works well, CumulusMx is running, but /etc/init.d/cumulusmx status return this:
Why in /tmp/CumulusMX.pid there are two pid numbers?
Thanks
I already posted a solution in the cumulusnow.sh forum.......and forgot to post it also here:

Short: mono is starting 2 processes which is causing 2 PIDs in the pidfile.....

Errors when starting cumulusnow.sh / and init.d startup script

If you encounter errors when starting cumulusmx.sh -n or directly with cumulusnow.sh which look like this:

error: process ID list syntax error

Usage:
ps [options]

Try 'ps --help <simple|list|output|threads|misc|all>'
or 'ps --help <s|l|o|t|m|a>'
for additional help text.

For more details see ps(1).


Here is the solution:
Since Mono JIT compiler version 6.8 an additional process called: mono-xsp4 is being started when the raspberry pi is starting.
mono-xsp4 It is starting a small webserver

Paket: mono-xsp4 (4.2-2.1)
simple web server to run ASP.NET 4.0 applications

I am not sure who needs this webserver, but you can easily disable it
service mono-xsp4 stop
or remove it permanently from autostart ---> update-rc.d mono-xsp4 disable
Do want a Managing Dashboard for CumulusMX on RaspberryPi? cumulusmx.sh
viewtopic.php?f=40&t=17907
Image
Post Reply