[systemd-devel] Where to put the environment files?

Thomas Meyer thomas at m3y3r.de
Sat Sep 24 01:57:18 PDT 2011


Hello,

is there a recommendation where to best put the environment files? and
what file extension should these files have?

I did prepare this service unit for apache derby and did put the
environment file into /usr/share/java/derby/

[Unit]
Description=Apache Derby Database Network Server
After=network.target

[Service]
Type=simple
EnvironmentFile=/usr/share/java/derby/derbyNetworkServer.env
WorkingDirectory=/var/lib/derby
StandardOutput=syslog
User=derby
ExecStart=/usr/bin/java org.apache.derby.drda.NetworkServerControl start

[Install]
WantedBy=multi-user.target




More information about the systemd-devel mailing list