Start Daemon Automatic

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
kingmallow
Posts: 2
Joined: 2009/01/02 15:56:51

Start Daemon Automatic

Post by kingmallow » 2009/01/02 16:01:32

Hello,

Each time my server restarts I have to go though the ssh connection and type in

/home/folder1/folder2/bin/zopectl start

in order to start my Zope instance that is located in folder2. Lately for some reason the server has been rebooting itself quite often and we are not always on top of whether our zope instance is running or not. I've tried to figure out how to boot it automatically but all I find when I search for zope and linux is makeshift shell files that I don't know how to use and that require "customization for your own distribution"

Is there a simple way that I can just type that line somewhere so that it would just run and I don't have to worry about it anymore?

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Start Daemon Automatic

Post by AlanBartlett » 2009/01/02 16:36:51

Please consider adding the line

[b]/home/folder1/folder2/bin/zopectl start[/b]

to your [b]/etc/rc.d/rc.local[/b] file.

kingmallow
Posts: 2
Joined: 2009/01/02 15:56:51

Re: Start Daemon Automatic

Post by kingmallow » 2009/01/02 19:44:26

It Works!!!

User avatar
AlanBartlett
Forum Moderator
Posts: 9323
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Start Daemon Automatic

Post by AlanBartlett » 2009/01/03 01:04:01

[quote]It Works!!![/quote]
Thanks for reporting back. :-)

Welcome to the [i]CentOS Community[/i] and the fora.

Post Reply

Return to “CentOS 4 - Server Support”