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 4019) - 03 April 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 V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
Cumulus on a Samba share - no autostart with start stop skript
Moderator: mcrossley
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Cumulus on a Samba share - no autostart with start stop skript
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
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: 860
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: Cumulus on a Samba share - no autostart with start stop skript
same here mate but i cant find the way to fix it
-
- Posts: 225
- Joined: Sat 27 Aug 2016 12:11 am
- Weather Station: Davis vantage pro 2
- Operating System: Debian
- Location: Wickliffe, Ohio
- Contact:
Re: Cumulus on a Samba share - no autostart with start stop skript
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
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
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.....
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
Jeff
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
- dazza1223
- Posts: 860
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: Cumulus on a Samba share - no autostart with start stop skript
o ok i will try that thank u
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Re: Cumulus on a Samba share - no autostart with start stop skript
I use cronjob to start Cumulus.
It is the start stop Skript.
How to do this here? Put it in a small bash file? Like that
?
Martin
Code: Select all
@reboot sudo /home/pi/CumulusMX/cumulusmx.sh
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: 860
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: Cumulus on a Samba share - no autostart with start stop skript
yh mate put it at the top off it
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Re: Cumulus on a Samba share - no autostart with start stop skript
It worked! Perfect! Thanks a lot
Martin
Martin
- dazza1223
- Posts: 860
- Joined: Sun 25 Jan 2015 8:41 pm
- Weather Station: Davis Vantage Pro 2 plus
- Operating System: Raspberry pi 4 (4gb)
- Location: Worthing
- Contact:
Re: Cumulus on a Samba share - no autostart with start stop skript
Glad to here that
-
- Posts: 225
- Joined: Sat 27 Aug 2016 12:11 am
- Weather Station: Davis vantage pro 2
- Operating System: Debian
- Location: Wickliffe, Ohio
- Contact:
Re: Cumulus on a Samba share - no autostart with start stop skript
glad to here that worked, figured it was easier than writing a script to check if share was up.maddinthebrain wrote:I use cronjob to start Cumulus.It is the start stop Skript.Code: Select all
@reboot sudo /home/pi/CumulusMX/cumulusmx.sh
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
Now you should be able to to put the sleep 30 inside the cumulusmx.sh instead of making another script to call cumulusmx.sh
Jeff
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
-
- Posts: 33
- Joined: Mon 07 Aug 2017 12:15 pm
- Weather Station: WH1080
- Operating System: Raspbian Jessie
Re: Cumulus on a Samba share - no autostart with start stop skript
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.
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.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
Furthermore I don't want to edit those scripts, as they will be updated from time to time.
Cheers Martin
-
- 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: Cumulus on a Samba share - no autostart with start stop skript
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: https://cumulus.hosiene.co.uk/viewtopic.p ... &start=150
Or a more inproved version: https://cumulus.hosiene.co.uk/viewtopic.p ... 59#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
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: https://cumulus.hosiene.co.uk/viewtopic.p ... &start=150
Or a more inproved version: https://cumulus.hosiene.co.uk/viewtopic.p ... 59#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
-
- Posts: 225
- Joined: Sat 27 Aug 2016 12:11 am
- Weather Station: Davis vantage pro 2
- Operating System: Debian
- Location: Wickliffe, Ohio
- Contact:
Re: Cumulus on a Samba share - no autostart with start stop skript
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 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: https://cumulus.hosiene.co.uk/viewtopic.p ... &start=150
Or a more inproved version: https://cumulus.hosiene.co.uk/viewtopic.p ... 59#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
Jeff
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
My Site http://wickliffeweather.com/
WeatherUnderground https://www.wunderground.com/personal-w ... KOHYOUNG21
-
- 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: Cumulus on a Samba share - no autostart with start stop skript
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
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