Re: Need some advices moving a fedora package from sysVinit to systemd t

2013-06-18 Thread Jean-Marc Pigeon
Hello lennart, Lets forget about question#1 (conditionnal dependancy) for now About question#2 (systemctl within ExecStartPre script). You really shouldn't do stuff like that as part of the normal boot process. Starting and then restarting things in the same boot process is really the wrong th

Re: Need some advices moving a fedora package from sysVinit to systemd t

2013-06-18 Thread Lennart Poettering
On Mon, 17.06.13 19:50, Jean-Marc Pigeon (j...@safe.ca) wrote: > I just understood I need "Requires=" instead of "After=" as the application > "require" the data-base daemon to be up and running in order to be > operational. Requirement dependencies and ordering dependencies in systemd are orthog

Re: Need some advices moving a fedora package from sysVinit to systemd t

2013-06-17 Thread Jean-Marc Pigeon
Hello Lennart, Many thank for you advices, but... Quoting Lennart Poettering : So the service "After=" directive should be conditional to an env variable. I have seen no provision within systemd to resolve such case... Could somebody propose a nice way to resolve such needs within systemd ser

Re: Need some advices moving a fedora package from sysVinit to systemd t

2013-06-17 Thread Lennart Poettering
On Mon, 17.06.13 16:05, Jean-Marc Pigeon (j...@safe.ca) wrote: > First question: > Sysadmin can choose about data-base to use (postgresql or MySQL, > editing the config file) and tuning configuration process will check > proper data-base server > is up and running then create application data-base