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

FAQ
It is currently Thu Dec 07, 2023 8:16 am


This forum is dedicated to installations of qmail, vpopmail, spamassassin, qmailadmin, vqadmin, clam antivirus, qmail-scanner(-st), daemontools, courier-imap, dovecot and so on.

Author Message
admin
  Post  Post subject: RHEL Service imapd.rc does not support chkconfig  |  Posted: Thu Aug 13, 2009 10:26 am
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 104

Offline
 

RHEL Service imapd.rc does not support chkconfig

While trying to add the courier imap service to red hat services start-up list, I got this error:
Code:
# 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
Code:
#! /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:
Code:
# 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.

_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com





Top
admin
Post  Post subject: Re: RHEL Service imapd.rc does not support chkconfig  |  Posted: Thu Aug 13, 2009 10:45 am
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 104

Offline
forgot to mention that the x permission must be set on /usr/local/libexec/imapd.rc.

_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com


Top
Display posts from previous:  Sort by  
E-mail friendPrint view
Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
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 ]



phpBB SEO