Public bug reported: Hello,
I'm not sure if this is more of a general bug with Systemd/systemctl, but the apacheds.service file doesn't seem to read the EnvironmentFile variable, or at least doesn't act upon the variable therein. While trying to start the apacheds service from systemctl I get the following errors: ---- bswan@ds:/lib/systemd/system$ sudo systemctl start apacheds Failed to start apacheds.service: Unit apacheds.service is not loaded properly: Invalid argument. See system logs and 'systemctl status apacheds.service' for details. bswan@ds:/lib/systemd/system$ sudo systemctl status apacheds ● apacheds.service - Apache Directory Server Loaded: error (Reason: Invalid argument) Active: inactive (dead) Nov 30 08:17:18 ds systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. Nov 30 08:17:45 ds systemd[1]: [/lib/systemd/system/apacheds.service:11] Executable path is not absolute, ignoring: ${JAVA_HOME}/bin/ Nov 30 08:17:45 ds systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. Nov 30 08:29:27 ds systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. Nov 30 08:30:50 ds systemd[1]: [/lib/systemd/system/apacheds.service:11] Executable path is not absolute, ignoring: ${JAVA_HOME}/bin/ Nov 30 08:30:50 ds systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. Nov 30 08:35:54 ds systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. Nov 30 08:49:04 ds systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. Nov 30 08:59:28 ds systemd[1]: [/lib/systemd/system/apacheds.service:12] Executable path is not absolute, ignoring: ${JAVA_HOME}/bin/ Nov 30 08:59:28 ds systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. ---- After much experimentation the work-around to get it working is to just copy the environment variables from /etc/default/apacheds and paste them into their appropriate places in the apacheds.service file and put the entire thing on one very long line. ** Affects: apache-directory-server (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1646146 Title: apacheds.service script not running from systemctl correctly To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apache-directory-server/+bug/1646146/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs