Start domino server through systemctl failed: Failed at step EXEC spawning "startup script": Exec format error

Latest response

Hello,
I define a start/stop script named domino_script to my IBM domino Server, and this script can start or stop a domino server by running "domino_script start" or "domino_script stop" successfully. Now, I define a service named domino.servicve in the /lib/systemd/system, like following:

[Unit]
Description=IBM Domino Server
After=syslog.target network.target

[Service]
Type=forking
PIDFile=/oadata/domino.pid
ExecStart=/opt/ibm/domino/domino_script start
ExecStop=/opt/ibm/domino/domino_script stop

[Install]
WantedBy=multi-user.target

When I perfom systemctl start domino.service, it return failed:

[root@localhost ~]# systemctl status domino.service
domino.service - IBM Domino Server
   Loaded: loaded (/usr/lib/systemd/system/domino.service; enabled)
   Active: failed (Result: exit-code) since Tue 2017-03-21 10:30:56 CST; 5s ago
  Process: 8785 ExecStart=/opt/ibm/domino/domino_script start (code=exited, status=203/EXEC)
 Main PID: 4476 (code=exited, status=0/SUCCESS)

Mar 21 10:30:56 localhost.localdomain systemd[1]: domino.service: control process exited, code=exited status=203
Mar 21 10:30:56 localhost.localdomain systemd[1]: Failed to start IBM Domino Server.
Mar 21 10:30:56 localhost.localdomain systemd[1]: Unit domino.service entered failed state.
[root@localhost ~]# 
[root@localhost ~]# journalctl -xn
-- Logs begin at Tue 2017-03-21 09:10:05 CST, end at Tue 2017-03-21 10:30:56 CST. --
Mar 21 10:27:44 localhost.localdomain systemd-logind[920]: New session 7 of user root.
-- Subject: A new session 7 has been created for user root
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/multiseat
-- 
-- A new session with the ID 7 has been created for the user root.
-- 
-- The leading process of the session is 8732.
Mar 21 10:27:44 localhost.localdomain sshd[8732]: pam_unix(sshd:session): session opened for user root by (uid=0)
Mar 21 10:27:44 localhost.localdomain sshd[8732]: subsystem request for sftp by user root
Mar 21 10:27:58 localhost.localdomain sshd[8732]: subsystem request for sftp by user root
Mar 21 10:30:46 localhost.localdomain systemd[1]: Reloading.
Mar 21 10:30:56 localhost.localdomain systemd[1]: Starting IBM Domino Server...
-- Subject: Unit domino.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit domino.service has begun starting up.
Mar 21 10:30:56 localhost.localdomain systemd[8785]: Failed at step EXEC spawning /opt/ibm/domino/domino_script: Exec format error
-- Subject: Process /opt/ibm/domino/domino_script could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /opt/ibm/domino/domino_script could not be executed and failed.
-- 
-- The error number returned while executing this process is 8.
Mar 21 10:30:56 localhost.localdomain systemd[1]: domino.service: control process exited, code=exited status=203
Mar 21 10:30:56 localhost.localdomain systemd[1]: Failed to start IBM Domino Server.
-- Subject: Unit domino.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit domino.service has failed.
-- 
-- The result is failed.
Mar 21 10:30:56 localhost.localdomain systemd[1]: Unit domino.service entered failed state.

How to I can diagnostic and resolve this problem?

Thank you for your any help.


Responses