First of all, ensure you have a script which chkconfig
is able to run. The file script.sh
bellow is an useful
script boilerplate in which you can use as starting point if don't have one.
Then, execute the following command:
$ chkconfig --level 345 script.sh on