[systemd-devel] How to set complex environment for apache?

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Tue May 22 13:39:14 PDT 2012


On 05/22/2012 10:16 PM, Joachim Banzhaf wrote:
> Me again :)
> 
> I use apache to serve php pages that connect to a DB2 database via the
> php_pdo interface.
> For this to work, I have to set a DB2 specific environment.
> To make that easy, there is a shell script provided that does the
> necessary adjustments (db2profile).
> 
> With SysV init I sourced that script in /etc/sysctl/apache2 and all was
> fine.
> That does no longer work. I guess systemd interprets that file differently?
> Are there alternatives? I mean, other than mimicking db2profile which
> would need to be verifyed (and posibly adapted) after every software update.
What does this script do? Depending on the details, ExecStartPre might
be what
you're looking for.

Zbyszek



More information about the systemd-devel mailing list