Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

It is currently Tue Sep 28, 2021 3:05 am

Message body:
Enter your message here, it may contain no more than 60000 characters. 

:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
Font colour
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.

Topic review - RHEL Service imapd.rc does not support chkconfig
Author Message
Post subject: Re: RHEL Service imapd.rc does not support chkconfig  |  Post Posted: Thu Aug 13, 2009 10:45 am
forgot to mention that the x permission must be set on /usr/local/libexec/imapd.rc.
Post subject: RHEL Service imapd.rc does not support chkconfig  |  Post Posted: Thu Aug 13, 2009 10:26 am
While trying to add the courier imap service to red hat services start-up list, I got this error:
# ln -s /usr/local/libexec/imapd.rc /etc/init.d
# chkconfig --add imapd.rc
service imapd.rc does not support chkconfig

For the chkconfig binary to be able to add a service based on it's startup script, it needs to have a special format.

I added in the beginning of the rc script the following
#! /bin/sh
# chkconfig: 2345 95 20
# description: imapd
# What your script does (not sure if this is necessary though)
# processname: imapd

2345 are the runlevels for which this service will be activated (at startup), 95 is the startup sequence number.
saved it and added the service:
# chkconfig --add imapd.rc
# chkconfig --list | grep imap
imapd.rc        0:off   1:off   2:on    3:on    4:on    5:on    6:off

Not quite as professional (the .rc in service name) as I'd want, but it can easily be modified.
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list

Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]