Hello,
The original eszserver 4.2 enterprise server did not offer a systemctl start up script. it only supports ./start.sh and ./monitor.sh.
Please see below of the systemctl startup script for ezserver 4.2 enterprise.
Please just create the above content name it as /etc/systemd/system/ezserver.service
then you can reload the daemon by "systemctl daemon-reload "
after that you can use "systemctl enable ezserver.service" to enable the ezserver from system start up.
and we can use "systemctl stop ezserver.service" to stop the ezserver service. and use "systemctl start ezserver.service" to start the service.
It is tested with the ezserver 4.2 enterprise hacked version from this forum. my installation directory is at /usr/local/ezserver_enterprise
if you did not install ezserver at /usr/local/ezserver_enterprise, you need to change it to your installed directory. please notice that checkmo.sh and monitor.sh also needs to be changed for EZSERVER_DIR environment variable to your installed directory. Please note that the default monitor.sh. has a timer of 180 seconds of cycle to check if ezserver process is running. If it is not running, the monitor.sh. will start the ezserver process. If you think 180 seconds are too long, you can adjust the timer to maybe 60 to 80 seconds by changing the timer in monitor.sh. just change 180 to the number of seconds you like.
Good Luck!
The original eszserver 4.2 enterprise server did not offer a systemctl start up script. it only supports ./start.sh and ./monitor.sh.
Please see below of the systemctl startup script for ezserver 4.2 enterprise.
Please just create the above content name it as /etc/systemd/system/ezserver.service
then you can reload the daemon by "systemctl daemon-reload "
after that you can use "systemctl enable ezserver.service" to enable the ezserver from system start up.
and we can use "systemctl stop ezserver.service" to stop the ezserver service. and use "systemctl start ezserver.service" to start the service.
It is tested with the ezserver 4.2 enterprise hacked version from this forum. my installation directory is at /usr/local/ezserver_enterprise
if you did not install ezserver at /usr/local/ezserver_enterprise, you need to change it to your installed directory. please notice that checkmo.sh and monitor.sh also needs to be changed for EZSERVER_DIR environment variable to your installed directory. Please note that the default monitor.sh. has a timer of 180 seconds of cycle to check if ezserver process is running. If it is not running, the monitor.sh. will start the ezserver process. If you think 180 seconds are too long, you can adjust the timer to maybe 60 to 80 seconds by changing the timer in monitor.sh. just change 180 to the number of seconds you like.
Good Luck!
Last edited: