Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
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
RaspberryPi: CumulusMX init.d System Startup Script
Moderator: mcrossley
- 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
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 .
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.
-
- 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
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........
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........
- 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
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.
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.
- 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
Great to hear!
Station: Davis Vantage Pro 2/CumulusMX/Raspberry Pi 3
- 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
Novy
I was wondering if you had forgotten the step to make cumulusmx.sh executable the first time?
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
- 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
possibly that was my problem . i do not remember editing the path the first time round
its still running anyway
all good
its still running anyway
all good
- 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
In case anyone else runs into a nursery-size warning, i.e.
I added the following line to my systemd service file
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
Code: Select all
Warning: Degraded allocation. Consider increasing nursery-size if the warning persists.
Code: Select all
[Service]
Environment=MONO_GC_PARAMS=nursery-size=8m
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
Bob
-
- 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
I'm having the same problem with "degraded allocation". What file did you modify? I can't find a systemd service file.
-
- 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
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 ??
even if i go to manualy
sudo /etc/init.d/cumulusmx start
cumulus is not running ;/
maybe a little help ??
-
- 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
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
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
-
- 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
I've already done it in a different way, but thank you for your help.
Best Regards
Best Regards
-
- 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
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.....
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.....
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.
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.
-
- 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
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
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
-
- 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
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
Why in /tmp/CumulusMX.pid there are two pid numbers?
Thanks
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:~ $
Thanks
-
- 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
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