Re: [Tutor] systemd

2019-03-03 Thread David Rock
> On Mar 3, 2019, at 08:46, Dave Hill wrote: > > > I would like to take advantage of the 'restart' functionality, but I still > wish to have a method of exiting > > i.e. Restart=always > > Is there a way in which I can have automatic restart but also have a way of > exiting? > Maybe

Re: [Tutor] systemd

2019-03-03 Thread David Rock
> On Mar 3, 2019, at 14:59, Cameron Simpson wrote: > > On 03Mar2019 16:01, Alan Gauld wrote: >> On 03/03/2019 14:46, Dave Hill wrote: >>>python3 /home/pi/Code/TestVideo#6.py CLIP0026.MP4 20 DEBUG >> >> To be honest I'm surprised that works. >> I'd expected bash to interpret the # as a

Re: [Tutor] systemd

2019-03-03 Thread Cameron Simpson
On 03Mar2019 16:01, Alan Gauld wrote: On 03/03/2019 14:46, Dave Hill wrote: python3 /home/pi/Code/TestVideo#6.py CLIP0026.MP4 20 DEBUG To be honest I'm surprised that works. I'd expected bash to interpret the # as a comment delimiter! But I tried it and it seems ok, you live and learn...

Re: [Tutor] systemd

2019-03-03 Thread Dave Hill
Thank you - registering with Linux Mint On 03/03/2019 16:01, Alan Gauld via Tutor wrote: On 03/03/2019 14:46, Dave Hill wrote: on power up, and I thought that I would use 'systemd'. This is really a Linux question not Python so you might like to try the Mint forums too. They are usually

Re: [Tutor] systemd

2019-03-03 Thread Alan Gauld via Tutor
On 03/03/2019 14:46, Dave Hill wrote: > on power up, and I thought that I would use 'systemd'. This is really a Linux question not Python so you might like to try the Mint forums too. They are usually pretty responsive. > [Service] > Type=idle > > User=pi > ExecStart=/bin/bash

[Tutor] systemd

2019-03-03 Thread Dave Hill
Hi, I am nearly ready for the new season on the Heritage railway I volunteer on and I am putting the final touches to a revamped 'runaway train' attraction in the museum. The last act is to get the code to auto-start on power up, and I thought that I would use 'systemd'. The code runs on a