apache directory server: do not start with systemctl
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache-directory-server (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Environment:
--------------
on ubuntu 16.04.2 TLS
Issue:
--------
systemctl start apacheds.service
Failed to start apacheds.service: Unit apacheds.service is not loaded properly: Invalid argument.
See system logs and 'systemctl status apacheds.service' for details.
Steps to reproduce:
------------------
- install oracle jdk8 :
apt install oracle-
- install apacheds:
apt install apacheds
- start apacheds:
systemctl enable apacheds.service
systemctl start apacheds.service
Logs/output/files:
------------
root@security:~# systemctl status apacheds.service
● apacheds.service - Apache Directory Server
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)
Mar 25 11:14:04 security systemd[1]: [/lib/systemd/
Mar 25 11:14:04 security systemd[1]: apacheds.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
Root cause
----------
- first: apacheds.service contains syntax error
systemctl edit apacheds.service:
with won't work:
ExecStart=
-cp '${ADS_HOME}/lib/*' \
this works fine:
ExecStart=/bin/sh -c "${JAVA_
-cp '${ADS_HOME}/lib/*' \
- second:
/usr/
cd /usr/lib/jvm/ && ln -s java-8-oracle default-java
Status changed to 'Confirmed' because the bug affects multiple users.