LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-07-2007, 10:27 PM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
Custom startup script for apache - where to put them


I have a simple startup script for apache, but where is the de facto place to put it?

its currently in /root/bin/apache_start

any tips?
 
Old 08-08-2007, 04:15 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You could put the commands in /etc/rc.d/rc.local or create a service using chkconfig.
 
Old 08-10-2007, 04:16 AM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
so there's no real standard recommended way of doing it?
 
Old 08-10-2007, 06:11 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Chkconfig is probably the standard way on Redhat based distros. You can find out more about making your scripts work with chkconfig in the LQ Wiki.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SELinux problem with a custom script at startup caps_phisto Linux - Security 1 06-23-2007 12:37 PM
Where do you generally put custom shell scripts (security-wise)? BILMO Linux - Security 3 01-18-2007 01:23 AM
execute custom made script on startup howto ALInux Linux - General 7 02-07-2006 01:25 PM
Can I put a 2.6x kernel on a custom set of ISOs and use it to install? lowpro2k3 Red Hat 1 03-26-2004 12:03 AM
Put custom dropdown in KDE panel graffitici Linux - Software 0 01-24-2004 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:34 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