Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-26-2005, 02:09 PM
|
#1
|
Member
Registered: Feb 2005
Posts: 69
Rep:
|
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.
|
|
|
02-26-2005, 02:32 PM
|
#2
|
Member
Registered: Feb 2005
Distribution: Slack
Posts: 122
Rep:
|
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.
|
|
|
02-26-2005, 03:14 PM
|
#3
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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.
|
|
|
02-26-2005, 03:20 PM
|
#4
|
Member
Registered: Feb 2005
Distribution: Slack
Posts: 122
Rep:
|
Also when your done you need to make the script executable... chmod 755 "scirpts_name"
|
|
|
02-26-2005, 10:44 PM
|
#5
|
Member
Registered: Feb 2005
Posts: 69
Original Poster
Rep:
|
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 03:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|