how to start a service at startup?

Ed Wilts ewilts at ewilts.org
Wed Jul 28 17:39:47 UTC 2004


On Wed, Jul 28, 2004 at 12:19:04PM -0400, rahul b jain cs student wrote:
> On Wed, 28 Jul 2004, Jianping Zhu wrote:
> 
> >
> > i have a proftpd. now i have to type proftpd to start this service. i
> > want to start it at server startup. how can i do that?
> > os: redhat9.0
> >
> edit the file /etc/rc.local

No! This is a poor solution to the problem. The initscripts solutions
should be used for cases like this.

The easiest thing to do is to grab the proftpd package from Dag's
archive.  Install it and you'll have /etc/rc.d/init.d/proftpd.  Simply
enable it as follows:

# chkconfig proftpd on

Poof, you're done.  If you want to start it now before a reboot:

# service proftpd start

You may also want to look at setting up a yum client to
identify/retrieve updates from Dag's archives.  That way you'll know
when new versions come out and have an easy way of updating them.

-- 
Ed Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts at ewilts.org
Member #1, Red Hat Community Ambassador Program





More information about the redhat-list mailing list