This script is only suitable for CentOS 5.4
Download the servicedesk.txt file from here.
Copy the servicedesk.txt to /etc/init.d/
# cp servicedesk.txt /etc/init.d/servicedesk
Edit the servicedesk file to modify the MDIR Variable. MDIR refers to /bin. Typically, if you have installed ServiceDesk Plus as a guest user, then MDIR will be,
MDIR=/home/guest/ManageEngine/ServiceDesk/bin
NOTE: To edit the servicedesk file type #vi servicedesk.txt
Give executable permissions for servicedesk startup script.
# chmod 755 /etc/init.d/servicedesk
Create a blank file under /var/log for logging purposes.
# touch /var/log/servicedesk-plus.log
Use chkconfig command to add the script as a startup process.
# chkconfig --add servicedesk
转载于:https://blog.51cto.com/hj192837/1314473