Auto Restart from gphoto in raspberry PI

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Auto Restart from gphoto in raspberry PI

michaelstraub
This post has NOT been accepted by the mailing list yet.
This post was updated on .
Hi,

when I start my PI, I start tetherd mode at rc.local with command:
gphoto2 --capture-tethered --force-overwrite --filename /var/www/lycheesync/foto/Fotobox/%f.%C &

unfortunatly sometimes the Process of that command disappears.

Now I'd like to have a script or a watchdog solution to let it restart when disappired.

Does anyone have a solution for me, sorry but I'm not a deep linux guy ;-)

regards Michael