FG
💻 Software

How do I create a service using chkconfig in CentOS?

Fresh5 days ago
Mar 15, 202640105 views
Confidence Score0%
0%

Problem

I want to be able to create a service so that the bash script will run every time the server boots up. I am running CentOS 5. I have been reading about chkconfig and creating a file in /etc/init.d for chkconfig to handle but I cannot seem to get it to work whenever I 'chkconfig servicename on' and …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I create a service using chkconfig in CentOS?

Low Risk

There is an initscript template on the Fedora Project website. On the same page, below the template, are complete instructions for writing headers for initscripts on RedHat/Fedora/CentOS systems. You might need to do this if you need to ensure your …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment