Re: [03/05] Embedded with systemd: systemd and weird triggers

2014-11-17 Thread Robert
On 17/11/2014 08:42, Andrei POPESCU wrote: >> with systemd I have to have >> >> waitforgps.sh >> waitforgps.service (Exec=waitforgps.sh) >> service.service (After=waitforgps.service) >> >> Is this really the best way? > > Maybe ExecStartPre= would help? See systemd.service(5). Oh yes, this is muc

Re: [03/05] Embedded with systemd: systemd and weird triggers

2014-11-16 Thread Andrei POPESCU
On Du, 16 nov 14, 20:52:23, Robert wrote: > Sometimes you only want services to start based on a "weird" trigger. > I have one use case where I only want a service to start once we have > received a valid GPS lock. With /sbin/init it looked like this: > > #!/bin/bash > while [ ]; do >sleep 5;