Question:
The script reports an error as follows
Nov 29 18:18:58 db53 systemd: Failed at step EXEC spawning /etc/rc.d/init.d/realserver: Exec format error
Nov 29 18:18:58 db53 systemd: realserver.service: control process exited, code=exited status=203
Nov 29 18:18:58 db53 systemd: Failed to start (null).
Nov 29 18:18:58 db53 systemd: Unit realserver.service entered failed state.
Nov 29 18:18:58 db53 systemd: realserver.service failed.
Solution:
Add at the beginning
#!/bin/sh
Similar Posts:
- [Solved] main process exited, code=exited, status=203/EXEC
- [Solved] Libvirt startup error: failed to start virtualization daemon
- [Solved] Linux starts MySQL service Error: Error code = exited, status = 127
- [Solved] Docker error: Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
- Centos7 Restart NIC error: Job for network.service failed because the control process exited with error code
- Job for docker.service failed because the control process exited with error code. See “syste…
- An error is reported in the dockerfie image, and the status is acitvating (start)
- [Solved] Failed to start LSB: Bring up/down networking.
- Nginx Error when installing the startup service failed to start a high performance web server and a reverse proxy serve
- Job for mysqld.service failed because the control process exited with error code