Page 9 of 10

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Thu 23 Feb 2017 7:12 pm
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 .

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Thu 23 Feb 2017 8:58 pm
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........

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Thu 23 Feb 2017 9:54 pm
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.

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Thu 23 Feb 2017 10:06 pm
by VTHokie74
Great to hear!

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Fri 24 Feb 2017 6:34 pm
by VTHokie74
Novy

I was wondering if you had forgotten the step to make cumulusmx.sh executable the first time?

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Fri 24 Feb 2017 9:37 pm
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 :)

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Tue 22 Aug 2017 2:51 pm
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

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Tue 13 Feb 2018 3:42 pm
by hillyjd
I'm having the same problem with "degraded allocation". What file did you modify? I can't find a systemd service file.

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Fri 12 Oct 2018 12:05 pm
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 ??

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Thu 18 Oct 2018 10:19 am
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

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Mon 22 Oct 2018 5:12 am
by Mincek
I've already done it in a different way, but thank you for your help.
Best Regards

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Fri 24 Jan 2020 4:22 pm
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:

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Sat 25 Jan 2020 10:51 am
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

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Thu 11 Jun 2020 8:38 pm
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

Re: RaspberryPi: CumulusMX init.d System Startup Script

Posted: Fri 12 Jun 2020 8:04 am
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