Use java service wrapper to package java application into linux service, but the following error is reported at startup, which master give me some advice
[root@192 /]# service cluster_syn start Unable to locate any of the following binaries: /etc/rc.d/init.d/./wrapper-linux-x86-64 /etc/rc.d/init.d/./wrapper-linux-x86-32 /etc/rc.d/init.d/./wrapper
After struggling for several days, I finally solved it myself. It turned out that the path in the startup script had to write the full path.
export CLUSTER_SYN_HOME=/usr/local/cluster_syn_linux WRAPPER_CMD="$CLUSTER_SYN_HOME/bin/wrapper" WRAPPER_CONF="$CLUSTER_SYN_HOME/conf/wrapper.conf"
If you think my article helped you, please buy me a drink! The following is my Alipay, which means I will be very grateful!