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 [ <some bash that figures out if we have a lock> ]; do > sleep 5; #wait for lock > done; > service & > > 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). Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic http://nuvreauspam.ro/gpg-transition.txt
signature.asc
Description: Digital signature