| Excerpt |
|---|
In case that you have service on /etc/init.d/ but it does not start automatically, you can simply enable it by run chkconfig function. |
chkconfig <service_name listed on /etc/init.d> on
Below case shows the list of service in /etc/init.d
...
| Code Block |
|---|
# chkconfig lp-confluence on
# chkconfig enewtown-confluence on
# chkconfig qsok-confluence on
# chkconfig qsok-jira on |
Service doesn't support error when you run chkconfig
If you face following error when you run chkconfig like below, you should add some remark tags on top of the script.
| Code Block |
|---|
# chkconfig qsok-jira on Service doesn't support |
In above case, you should add below scripts on top of the file
| Code Block |
|---|
#!/bin/bash
### BEGIN INIT INFO
# Provides: qsok-jira
# Required-Start: $remote_fs $syslog $time $named
# Required-Stop: $remote_fs $syslog $time $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Blah Blah
# Description: Blah Blah
### END INIT INFO |