31.03.2018 21:59, Michael Ströder пишет:
HI!
I have a bunch of systemd unit files which worked just fine until recent Tumbleweed update (20180306 -> 20180326). Note that the same unit files also work under Debian and CentOS7.
But now starting the service fails:
--------------------------------- snip --------------------------------- ae-dir-suse-c2:~ # systemctl status ae-slapd ● ae-slapd.service - AE-DIR OpenLDAP server Loaded: error (Reason: Exec format error) Active: inactive (dead)
Mar 31 20:33:40 ae-dir-suse-c2 systemd[1]: ae-slapd.service: Cannot add dependency job, ignoring: Unit ae-slapd.service is not loaded properly: Exec format error. --------------------------------- snip ---------------------------------
See unit file /etc/systemd/system/ae-slapd.service attached below.
Any clue what's wrong with that?
Ciao, Michael.
#----------------------------------------------------------------------- # initiate: systemctl enable ae-slapd.service # start: systemctl start ae-slapd.service # get status: systemctl status ae-slapd.service # # Ansible managed: ae-dir/master #-----------------------------------------------------------------------
[Unit] Description=AE-DIR OpenLDAP server Requires=network.target After=network.target
[Service] Type=simple PIDFile=/opt/ae-dir/run/slapd/slapd.pid ExecStart=/usr/sbin/slapd -n ae-slapd -l LOCAL4 -s 7 -f /opt/ae-dir/etc/openldap/slapd.conf -h 'ldapi://%2Fopt%2Fae-dir%2Frun%2Fslapd%2Fldapi ldap://*:389
It probably fails to interpret "%2" as specifier. If it is part of command line, try "%%" for literal "%".
ldaps://*:636' -u ae-dir-slapd -g ae-dir-slapd -o slp=off User=root Group=root
[Install] WantedBy=multi-user.target
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org