Startup File


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Startup File
# 1  
Old 04-15-2002
Startup File

I am running Mandrake 8.1 and am wondering what file Linux uses to start services. Such as MySQLD and Apache. I need to add a program to this startup file so that it loads when linux loads.

Thanks

Gregg
# 2  
Old 04-15-2002
Usually the startup services for Linux will be located at /etc/rc.d/init.d. Here you will find out quite numbers of deamons that will be used during startup. Some might not be Enabled. You can try add services to /etc/rc.d/init.d.
Also try using your X and check the Mandrake add services apps.
You should able to add services that you wish to run during boot up time.
# 3  
Old 04-16-2002
That's great! Thanks a bunhc. I actually tried putting it in the rc.local file and it worked. Are there any advantages/disadvantages over using rc.d or rc.local?
# 4  
Old 04-17-2002
rc.local will run anything in it like a script.
If you place something in /etc/rc.d/init.d, to enable it you have to write the script in a specific way, and then place a link from init.d to rc?.d, where "?" is the number of the runlevel it should be started in.

I find it easier to place scripts in the rc.local in most cases. Read some of the scripts for an idea of how they work.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Apache tomcat startup script not booting at startup.

I copied the script from an AskUbuntu post - #!/bin/bash ### BEGIN INIT INFO # Provides: tomcat7 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server ### END INIT INFO ... (14 Replies)
Discussion started by: Hijanoqu
14 Replies

2. Shell Programming and Scripting

grep startup messages from catalina.out file

Hello Team, I am trying to extract date from the following output and trying to compare with current date and if there is 10 minute difference between the two. it should logs message in the file server is started.can anyone help me to implement this in the script? (1 Reply)
Discussion started by: coolguyamy
1 Replies

3. Shell Programming and Scripting

How to Auto Generate pg_hba.conf file at Startup

Hi there, I'll start by letting you you know my current shell programming and scripting is very week (and thats a euphemistic description). I'm really just wanting someone to make a suggestion to get me rolling in the right direction though absolutely any help is of course welcome. Set Up -... (0 Replies)
Discussion started by: lukusc
0 Replies

4. Linux

file location for GNOME auto startup apps

I know how to add an apps to auto-start in GUI, but I'd like to know how to do it mannualy. So where is the file saved to by GUI ? (1 Reply)
Discussion started by: honglus
1 Replies

5. Solaris

StartUP file to start a service

Hi guys: i have a Solaris 10 development server and a Solaris 9 production server. The entire task must be done in the dev. server. When it's done and all the testing is OK, the script or files are transfer to prod. Server. All right. Now I have to figure out a way to put a script to initiate... (2 Replies)
Discussion started by: bmathiasf
2 Replies

6. UNIX for Advanced & Expert Users

File descriptors missing on startup

Dec 20 15:34:32 hostname sendmail: File descriptors missing on startup: stderr; Bad file number Dec 20 15:34:32 hostname sendmail: File descriptors missing on startup: stderr; Bad file number Dec 20 15:34:32 hostname sendmail: File descriptors missing on startup: stderr; Bad file number Dec... (1 Reply)
Discussion started by: xnightcrawl
1 Replies

7. UNIX for Advanced & Expert Users

the Startup script file????

hi guys, just went thru a "how to" manual on Solaris CDE.... could any of you pleaz tell me how to restrict users from logging in at particular times.... in linux,i wrote an access script, put in in /etc/profile and was able t o restrict users from logging in at particular times on particular... (7 Replies)
Discussion started by: swordfish
7 Replies

8. HP-UX

hpux startup process, AUTO file?

hi, one of the process of hpux startup is this ISL where it consults the AUTO file. is this AUTO file resident in disk? thanks (5 Replies)
Discussion started by: yls177
5 Replies

9. UNIX for Dummies Questions & Answers

what is the startup file for unix ?

I am using Sharity and want it to start up when I start up the system. How or what is the procedure for this ??? (5 Replies)
Discussion started by: chimp
5 Replies
Login or Register to Ask a Question