LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2004, 06:04 PM   #1
iroxa
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
Adding new services


Hi,

I am currently writing a simple management app in php whereby I can stop and start services like HTTP, HTTPS, FTP, POP3, etc but I want this to run on a speperate instance of apache.

Is there a way to add my own services to load at startup (much like windows 2000 server's services - sorry im a windows admin by nature but trying to break out of it!). I also want to do this so I can run a perl script on startup that emails me every time the box is booted up.

Thanks,

Ben Hodgson
 
Old 05-18-2004, 06:24 PM   #2
iroxa
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Am I right in saying that this has something to do with "/etc/init.d"?
 
Old 05-18-2004, 07:00 PM   #3
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
Yes, you can either add the command/script to your
/etc/rc.d/rc.local
file, which inits last before the login prompt/X server, or, to make it start via init, you can place a symbolic link in this directory:
/etc/rc.d/rcx.d
where x is the runlevel you usually boot into. If youre putting the symlink in as a part of init, be sure to give it this syntax:
Sxy
x=the priority number, lower comes first
y=simple name of the program/script.
Dont forget the S!
For example, one entry in my /etc/rc.d/rc3.d directory looks like this:
S73numlock
Good luck!
 
Old 05-18-2004, 07:10 PM   #4
iroxa
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks - I think i'll play with this one for a bit....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Services nc3b Slackware 2 09-17-2005 01:41 AM
Adding Custom Services to Startup (FC3) SSTwinrova Fedora 1 08-11-2005 05:26 PM
TightVNC Ver terminal Services.. also looking for terminal Services for linux 2782d4 Linux - Security 3 05-20-2004 02:30 AM
Adding startup services and receiving graphical feedback .com Linux - General 1 12-23-2003 03:57 PM
Adding services to load at system start up Valerie Linux - General 4 03-11-2002 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration