Re: Systemd tip: service conditionals

2013-05-22 Thread Florian Weimer
On 05/21/2013 08:48 PM, Simone Caronni wrote: Hello, On 21 May 2013 17:43, Florian Weimer mailto:fwei...@redhat.com>> wrote: On 05/21/2013 02:08 PM, Simone Caronni wrote: If there's a way to check if Secure Boot is enabled that would be great. Why do you want to do th

Re: Systemd tip: service conditionals

2013-05-21 Thread Simone Caronni
Hello, On 21 May 2013 17:43, Florian Weimer wrote: > On 05/21/2013 02:08 PM, Simone Caronni wrote: > >> If there's a way to check if Secure Boot is enabled that would be great. >> > > Why do you want to do that? That's almost always wrong, just like > checking for the AD bit in DNS responses.

Re: Systemd tip: service conditionals

2013-05-21 Thread Florian Weimer
On 05/21/2013 02:08 PM, Simone Caronni wrote: If there's a way to check if Secure Boot is enabled that would be great. Why do you want to do that? That's almost always wrong, just like checking for the AD bit in DNS responses. -- Florian Weimer / Red Hat Product Security Team -- devel maili

Re: Systemd tip: service conditionals

2013-05-21 Thread Josh Boyer
On Tue, May 21, 2013 at 10:12 AM, Lennart Poettering wrote: > On Tue, 21.05.13 14:08, Simone Caronni (negativ...@gmail.com) wrote: > >> Hello, >> >> thanks for the tip. >> >> On 16 May 2013 20:41, Adam Williamson wrote: >> >> > It's really neat stuff, and very easy to use: you just add a >> > Con

Re: Systemd tip: service conditionals

2013-05-21 Thread Lennart Poettering
On Tue, 21.05.13 14:08, Simone Caronni (negativ...@gmail.com) wrote: > Hello, > > thanks for the tip. > > On 16 May 2013 20:41, Adam Williamson wrote: > > > It's really neat stuff, and very easy to use: you just add a > > Condition(Something) statement to the .service file. For details on > >

Re: Systemd tip: service conditionals

2013-05-21 Thread Simone Caronni
Hello, thanks for the tip. On 16 May 2013 20:41, Adam Williamson wrote: > It's really neat stuff, and very easy to use: you just add a > Condition(Something) statement to the .service file. For details on > using these conditions, see 'man systemd.unit' and just search for > Condition, and you'

Systemd tip: service conditionals

2013-05-16 Thread Adam Williamson
In relation to the 'when startup delays become bugs' thread, it occurs to me that perhaps not all packagers / devs know about one of the neater systemd capabilities: conditional service activation. You can make activation of your service conditional on a wide range of things, including: 1. The exi