LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Startup Programs as a Service? (https://www.linuxquestions.org/questions/linux-newbie-8/startup-programs-as-a-service-295176/)

keithieopia 02-26-2005 02:09 PM

Startup Programs as a Service?
 
Ok I'm trying to make a program startup WITH linux like a service, but I have no idea how to go about this, I found something called cron but I really dont know if this would do it or even how to use it. Remember, I want the program as a service not to start up with a partiqular user.

chris318 02-26-2005 02:32 PM

Question 1, what disto do you use. IMORTANT becuase I need to know what type of init scripts you use V or BSD.

You probably want to use inetd to startup your services not cron. Cron is not meant for what you are trying to do. It's meant to run a program at a specefic time. Like log rotation, sychronizing your clock, stuff like that. Inetd, is what your want to use. Inetd basically listens on all ports you tell it to and then when someone tries to connect to the port, lauches the appropraite service like httpd. Much more effecient then to have a buch of services running on your computer all the time, instead of just the one inetd.

Mara 02-26-2005 03:14 PM

To make a program run as service you need a strating script for it. Look into /etc/rc?.d directories (or /etc/init.d, depending on the distribution). You need to prepare a similar one. There should be something called skel or something similar - example script where you usually need to only feel the program name.

chris318 02-26-2005 03:20 PM

Also when your done you need to make the script executable... chmod 755 "scirpts_name"

keithieopia 02-26-2005 10:44 PM

Ok I'm using MEPIS (debian based), sounds like inetd is what I need, I'm trying to make abyss web server startup with linux. It listens on port 8000 but I have no Idea how to do all the aboved mentioned, and before someone jumps the gun switching to apache or another webserver is not an option. So is there a way to setup this inetd thing so it always listens on 8000 and executes the abyssws when someone connects?


All times are GMT -5. The time now is 05:03 PM.