Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Cumulus on a Samba share - no autostart with start stop skript

Discussion of version 3 of Cumulus, which runs on Windows, Linux, and OS X. All Cumulus MX queries in here, please.
maddinthebrain
Posts: 33
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Cumulus on a Samba share - no autostart with start stop skript

Postby maddinthebrain » Mon Dec 25, 2017 8:51 pm

Hello folks,
As a I had damaged SD card with my raspi I put Cumulus on my Nas and mounted the share by Samba in the original place in the directory tree. Everything works fine but autostart after booting the raspbian. I guess it's because the share is not mounted quick enough. Starting it manually works fine. The backup and the daily restart defined in crop job work fine as well.

Any idea? Thanks in advance.

Merry Christmas

Martin

dazza1223
Posts: 243
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby dazza1223 » Mon Dec 25, 2017 11:08 pm

same here mate but i cant find the way to fix it

jlmr731
Posts: 120
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Youngstown, Ohio
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby jlmr731 » Mon Dec 25, 2017 11:21 pm

Is your network share mounted at boot?
Are you using a bash script to start up cumulus?

If yes then you can add in a delay to your cumulus start up script.
Like this

Code: Select all

#!/bin/bash
sleep 30
## the rest of you startup script.....


Now the sleep command will pause for what time you use to sleep 10 sec use sleep 10, to sleep 2 minutes use sleep 2m.
Depending on when in the boot up process your script and networking share get started you may have to adjust the time.
maybe start at 2 minutes to see if that works

dazza1223
Posts: 243
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby dazza1223 » Mon Dec 25, 2017 11:27 pm

o ok i will try that thank u

maddinthebrain
Posts: 33
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby maddinthebrain » Wed Dec 27, 2017 6:03 pm

I use cronjob to start Cumulus.

Code: Select all

@reboot sudo /home/pi/CumulusMX/cumulusmx.sh 

It is the start stop Skript.
How to do this here? Put it in a small bash file? Like that

Code: Select all

#!/bin/bash
sleep 30
Sudo /home/pi/CumulusMX/cumulusmx.sh 

?

Martin

dazza1223
Posts: 243
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby dazza1223 » Wed Dec 27, 2017 8:20 pm

yh mate put it at the top off it

maddinthebrain
Posts: 33
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby maddinthebrain » Fri Dec 29, 2017 10:01 pm

It worked! Perfect! Thanks a lot

Martin

dazza1223
Posts: 243
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: davis vantage vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby dazza1223 » Fri Dec 29, 2017 10:18 pm

Glad to here that

jlmr731
Posts: 120
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Youngstown, Ohio
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby jlmr731 » Sat Dec 30, 2017 3:44 pm

maddinthebrain wrote:I use cronjob to start Cumulus.

Code: Select all

@reboot sudo /home/pi/CumulusMX/cumulusmx.sh 

It is the start stop Skript.
How to do this here? Put it in a small bash file? Like that

Code: Select all

#!/bin/bash
sleep 30
Sudo /home/pi/CumulusMX/cumulusmx.sh 

?

Martin


glad to here that worked, figured it was easier than writing a script to check if share was up.

Now you should be able to to put the sleep 30 inside the cumulusmx.sh instead of making another script to call cumulusmx.sh

maddinthebrain
Posts: 33
Joined: Mon Aug 07, 2017 12:15 pm
Weather Station: WH1080
Operating System: Raspbian Jessie

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby maddinthebrain » Sat Dec 30, 2017 9:00 pm

jlmr731 wrote:
glad to here that worked, figured it was easier than writing a script to check if share was up.

Yeah, indeed. Even if it is not perfect but it works.

jlmr731 wrote:
Now you should be able to to put the sleep 30 inside the cumulusmx.sh instead of making another script to call cumulusmx.sh

Well I guess I'll leave this way, because the Smart home server Fhem had the same problem, I call its script with an additional line in my startup.sh.
Furthermore I don't want to edit those scripts, as they will be updated from time to time.


Cheers Martin

jank
Posts: 298
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby jank » Sat Jan 06, 2018 1:31 pm

Hello

the cumulusMX Start Stop Script is able to handle such conditions.
Some month ago, one had a problem running cumulusmx.sh when installed on a USB Drive which was also not mounted at system boot.
PLease check this: http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767&start=150

Or a more inproved version: http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767&p=120459#p120459
This is, when cumulusmx.sh is being started by a init.d startup script but network drives are not mounted yet.
In this case, the script will run in a kind of loop until the drives are available....

cheers jan
Want to see your Station values on SSH? Cumulusnow http://sandaysoft.com/forum/viewtopic.php?f=27&t=14062
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767

jlmr731
Posts: 120
Joined: Sat Aug 27, 2016 12:11 am
Weather Station: Davis vantage pro 2
Operating System: Debian
Location: Youngstown, Ohio
Contact:

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby jlmr731 » Sat Jan 06, 2018 4:59 pm

jank wrote:Hello

the cumulusMX Start Stop Script is able to handle such conditions.
Some month ago, one had a problem running cumulusmx.sh when installed on a USB Drive which was also not mounted at system boot.
PLease check this: http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767&start=150

Or a more inproved version: http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767&p=120459#p120459
This is, when cumulusmx.sh is being started by a init.d startup script but network drives are not mounted yet.
In this case, the script will run in a kind of loop until the drives are available....

cheers jan


I thought of that script but was not sure it was setup to check for mounts, as i always look for the easiest thing to do.

jank
Posts: 298
Joined: Sat Jun 13, 2015 5:57 pm
Weather Station: weatherstation
Operating System: Debian Wheezy
Location: Germany

Re: Cumulus on a Samba share - no autostart with start stop skript

Postby jank » Sun Jan 07, 2018 12:42 pm

As far as I remember I made this option because for any reason the cron entry "@reboot" does not work anymore.
Someone had CumulusMX installed on a USB drive but it was mounted after the init.d Sctipt was executed with the result, that CumuluxMX could not be started.
For this reason, I made the option ./cumulusmx.sh -w (watchdog)
In this case you can create a normal cronjob which is being executed every 10 minutes (for example).
In case CumulusMX is already runing, nothing happens. In case CumulusMX is NOT running it is being started.
So in the worst case, CumulusMX is being started 10 minutes after reboot....his should be enough time to mount a USB drive or a network drive.
Jan
Want to see your Station values on SSH? Cumulusnow http://sandaysoft.com/forum/viewtopic.php?f=27&t=14062
Want a Start|Stop|Restart Script for CumulusMX on RaspberryPi? cumulusmx.sh http://sandaysoft.com/forum/viewtopic.php?f=27&t=13767


Return to “Cumulus MX”

Who is online

Users browsing this forum: No registered users and 5 guests