Satrt Customer Service when CentOS starts

1. write a start script and put the following two comments into your script:


# chkconfig: 2345 90 10
# description: start Galaxy service and listening on port 8080, to visit please go http://localhost:8080
put your scripts here, which you wish to start when system boots

Where the chkconfig line is the most important, it lists

a. 2345 - runlevels the service will be started (by default),

b. 90 - when the service is started when entering a runlevel (relative to others, look into /etc/rc3.d for example),

c. 10 - when the service is stopped (relative to others, see /etc/rc0.d for example)


2. put your script into /etc/init.d, make it executable (usually chmod'ed to 755)


3. As root run "chkconfig --add your_service


No comments:

Post a Comment

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...