Hi,
is it simple possible to delay the autostart of pimatic after system start for e.g. 5 seconds?
I like to keep the possibility to start, stop and check pimatic by using sudo pimatic.js start/stop/restart/status
[SOLVED] How to delay pimatic autostart after system start
Hi,
is it simple possible to delay the autostart of pimatic after system start for e.g. 5 seconds?
I like to keep the possibility to start, stop and check pimatic by using sudo pimatic.js start/stop/restart/status
@ortin
I’m afraid I don’t know much about scripts. But maybe it is possible to add a sleep 5
for 5 sec
in /etc/init.d/pimatic
I think after the line with the path.
If you have create a autostart like this.
On the other hand, I don’t understand why. If pimatic is not running you can’t get a status or quit it. You can only start.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
Have a really special constalation here. My system image is created in a way to fit to multiple raspberrys devices with different HW configs (with HDD, without, with different HDD…). It’s really tricky. It should work for me and the others whose system I am maintaining equally.
My problem is that pimatic sometimes don’t start at system boot, because my HDD where pimatic and all the stuff is located needs to long to wake up.
@Thrusty: I will try it.
Maybe it would be enough to put a simple boot delay, but this is an adaption of the system (image). I was looking for something I can handle by the pimatic config.
@OrTiN
There is also a possibility for a Boot_delay of the Raspberry. Maybe this is a better solution to wait for the HDD.
If the Raspberry with the SD card only boots, but the file system is on an HDD.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)
The boot_delay delayed as well the HDD wake up so I had no benefit.
The simple sleep in /etc/init.d/pimatic did it for me.
@ortin
I’m glad it’s working. I never needed this function, so I never tried it. I had only read about it at some point.
"Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect." 09-28-2003, LINUS TORVALDS (http://www.nytimes.com)