Page 1 of 1

Newbie to Linux Please be gentle! CumulusMX R-Pi Startup?

Posted: Tue 22 Dec 2015 9:23 pm
by tony_huk
My apologies if this has been asked and answered in another post, but I couldn't find one...

I'm a Linux newbie, and wanted to experiment with CMX running on a Raspberry Pi 2 I purchased specifically for this application.

I managed to get it installed and running without issue, but I'm at a loss on how to set it up so that CMX will auto-run upon reboot or startup.

I thought to add the startup command to the /etc/rc.local startup script, but apparently that doesn't work the way I 'expect' it should.

I am fortunate to have a RT Clock on my Pi, so I don't think I have to deal with startup delay scripts, etc.

Can anyone make a recommendation? I'm thinking that I would like to set an ENVIRONMENT variable as well, so the start and stop can happen from any directory, not just being in the actual location (which is currently in /home/pi/CumulusMX)

Thank you!!!!

Re: Newbie to Linux Please be gentle! CumulusMX R-Pi Startup

Posted: Wed 23 Dec 2015 5:41 pm
by logjam
I think this thread may point you in the right direction.
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13767

Re: Newbie to Linux Please be gentle! CumulusMX R-Pi Startup

Posted: Wed 23 Dec 2015 8:21 pm
by tony_huk
Yes, I saw that pop up after I posted my question...

I will try that... And thanks for your reply!

Re: Newbie to Linux Please be gentle! CumulusMX R-Pi Startup

Posted: Wed 23 Dec 2015 8:34 pm
by jank
Without making advertisement to my own scirpt, you have 2 options to do this
Create a new cron Entry

sudo crontab -e
@reboot sudo /usr/bin/mono /home/pi/CumulusMX/CumulusMX.exe -lang en-GB >> /dev/null 2>&1


Never tried it that way, but it should work
Or use the script mentioned in logjam's post. This script is more than just a Start Stop Script.
My main intention some month ago was, to improve my bash skills and having a script which is able to start CumulusMX if not already started and stop it when already started.
Finally more and more functionallity was added......try it out.....call it with option -h (./cumulusmx.sh -h to see the available options)

Btw:
You can of course use this script to start CumulusMX when System starting up
@reboot sudo /CumulusMX/cumulusmx.sh >> /dev/null 2>&1
Have fun
Jan