Hello
Found a solution to update service configuration according component
(namely database) found needed during the application first start.
using file /etc/systemd/system/clement.service
(which is a (RPM no replace) legit configuration file).
contents is
#this is the local configuration file
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
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
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
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