I wrote very simple script file for systemd as a prototype. Because of focused only for start or stop (registering or deleting cron jobs of OTRS running user), functions below doesn't include.
- Check existing/size for various files.
- Web server running check if enabled.
- DB server connecting check.
- Cleanup spooled messages with sending mail.
It has omitted any other servers running check since it depends on the environment.
But, it must require such as httpd+mariadb.
I'll attach in this mail because I don't know what repository this must be classified.
Please place it under directory "/usr/lib/systemd/system". Permission for executing is not required.
If target ML is wrong, please notify.