Re: [systemd-devel] Method to Wait for service to complete

2015-08-16 Thread Harry Goldschmitt
On 8/12/15 12:32 PM, killermoehre wrote: > Am 12.08.2015 um 20:34 schrieb Harry Goldschmitt: >> I have a service that has to complete before boot can continue. Is there >> an “approved” method for doing this? >> >> >> >> I have an ugly solution I’ve come up with… I’ve created a foo.target to >> r

Re: [systemd-devel] Console screen blanks while long running service executes

2015-08-16 Thread Harry Goldschmitt
On 8/12/15 7:22 PM, Chris Bell wrote: > On 2015-08-12 20:19, Harry Goldschmitt wrote: >> I just modified my grub kernel command line to add the consoleblank=0 >> parameter. That isn't the problem. First consoleblank is the kernel >> screensaver and according to the documentation it kicks in after 1

Re: [systemd-devel] Option substitution in unit configuration files?

2015-08-16 Thread Malte Forkel
Thanks to both of you! > I'd always encourage > you to fix the daemon in question to make something like the above > unnecessary. True. Since I'm only packaging the daemon, I can just guess its written as it is to make sure the daemon can remove t

Re: [systemd-devel] Method to Wait for service to complete

2015-08-16 Thread Lennart Poettering
On Wed, 12.08.15 18:34, Harry Goldschmitt ([email protected]) wrote: > I have a service that has to complete before boot can continue. Is > there an "approved" method for doing this? Not sure what "boot can continue" is supposed to mean, but all systemd units support After= and Before

Re: [systemd-devel] Option substitution in unit configuration files?

2015-08-16 Thread Lennart Poettering
On Sun, 16.08.15 16:36, Malte Forkel ([email protected]) wrote: > Hi, > > Is there some kind of option substitution in unit configuration > files? Unit files are supposed to be simply configuration files, not a macro language. That said there is: 1) Specifier expansion in a number of setti

Re: [systemd-devel] Option substitution in unit configuration files?

2015-08-16 Thread Mantas Mikulėnas
On Sun, Aug 16, 2015 at 5:36 PM, Malte Forkel wrote: > Hi, > > Is there some kind of option substitution in unit configuration files? > > In a service configuration file, I specify the PID file and would like > to re-use its name, e.g. > PIDFile=/var/run/myservice.pid > ExecStartPre=/usr/

[systemd-devel] Option substitution in unit configuration files?

2015-08-16 Thread Malte Forkel
Hi, Is there some kind of option substitution in unit configuration files? In a service configuration file, I specify the PID file and would like to re-use its name, e.g. PIDFile=/var/run/myservice.pid ExecStartPre=/usr/bin/touch %PIDFile ; /bin/chown myuser %PIDFile Thanks, Malte _

Re: [systemd-devel] Troubleshooting Failed Nspawn Starts

2015-08-16 Thread Lennart Poettering
On Fri, 14.08.15 14:23, Rich Freeman ([email protected]) wrote: > On Fri, Aug 14, 2015 at 1:30 PM, Lennart Poettering > wrote: > > On Mon, 10.08.15 08:03, Rich Freeman ([email protected]) wrote: > > > > We have watchdog (see WatchdogSec= documentation in > > systemd.service(

Re: [systemd-devel] network configuration

2015-08-16 Thread Lennart Poettering
On Fri, 14.08.15 19:50, Michał Zegan ([email protected]) wrote: > Actually what is a procedure for more complicated network > configuration, where you do not have something in networkd? Well, we try to cover a good chunk of the usecases, but we want be conservative when exposing options,

Re: [systemd-devel] Who has rights to override/ignore inhibitors?

2015-08-16 Thread Lennart Poettering
On Fri, 14.08.15 21:12, Jayson Willson ([email protected]) wrote: > Hello. I have realized, that my user (groups: > tty,disk,mail,news,dialout,voice,sudo,audio,www-data,video,plugdev,users,mlocate,kvm,vboxusers,libvirt) > can ignore inhibitors (such as root being logged in) using "system