Jump to content

SuSE 10 int.d script


Guest JonathonReinhart

Recommended Posts

Hello everyone. I'm trying to put together an /etc/init.d script to start MTA on server startup. It doesn't work. I know what's wrong I just don't know how to fix it. It's the same problem as if you try to start mta_server without being in that directory. For example:

jonathon@mweb:/home> /home/mtaserver/mta_server

give me the error that it cannot find net.so assuming b/c im not in that directory. however:

jonathon@mweb:/home> cd /home/mtaserver/
jonathon@mweb:/home/mtaserver> ./mta_server

starts up fine. So when i try to do /etc/init.d/mtaserver start I think it does the same thing. I dont know exactly what/how to do this.

So what can I put into my init.d script so that it starts this from the right directory, and therefore finds all the files?

Also, I'd like to later write/find one and put it in cron for every 5 minutes or so to check if certain services (namely this one and apache) are running, and if not start them, and if that don't work, email me.

Anyone with any input on either of these, please share. Thanks!!!

Jonathon

mweb.kicks-ass.net

Link to comment

My only problem is that it tries to start the server, NOT from the working directory. I need startproc to start it from the /home/mtaserver directory.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...