starting up something on boot

 
Thread Tools Search this Thread
Operating Systems Linux Slackware starting up something on boot
# 1  
Old 10-05-2004
starting up something on boot

I'm trying to bring up a database server when the linux 6.2 machine is restarted, in unix i can set up a Sxxdbstart script under rc3.d and run
su user -c /path/to/my/script


How can I do this in linux? I thought I could just run it under the rc.d/rc.local script and add it at the end of the local script, but that isn't working, any ideas?


Thanks, k
# 2  
Old 10-06-2004
6.2 Really? Welcome to 1998 Smilie

I don't have a 6.2 system handy and don't remember the exacts of init from back then. On a more current version you would put your startup script in /etc/init.d and link it to the /etc/rc#.d directories you want it to run in. For example if you want it to run when the system boots to run level 3 you would link it to /etc/rc3.d. I don't think chkconfig existed back on 6.2 but it might have. If it's on your system you could also use chkconfig --add.
# 3  
Old 10-06-2004
Re: starting up something on boot

Quote:
Originally posted by kymberm How can I do this in linux? I thought I could just run it under the rc.d/rc.local script and add it at the end of the local script,
Slackware Linux still makes use of /etc/rc.d/rc.local. Once you add the script to the rc.local. Make sure it is executable.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Smb & nmb not starting at boot - CentOS7

I would like the smb and nmb to start on boot. In the terminal (as root) I did: /sbin/chkconfig smb --addor chkconfig --add sambaor chkconfig --add /sbin/smbdresault is message like below : error reading information on service smb: No such file or directory Please use CODE tags as... (2 Replies)
Discussion started by: momed131
2 Replies

2. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies

3. Solaris

Solaris x86 installation using jumpstart does not local boot ( boot from hdd)

I am trying to install Solaris x86 using the Jumpstart server. I run the add_install_client command with appropriate options, and reboot my x86 Target box. The installation starts fine and unattended. After the installation completes and the target goes for a re-boot, it does not boot from the HDD... (9 Replies)
Discussion started by: hemalsid
9 Replies

4. Boot Loaders

Reboot and Select Proper Boot device or insert Boot media in select Boot device and press a key

Hello, I have kubuntu on my laptop and now I decided to switch to Windows 7. I made the bios settings properly (first choice is boot from cd\vd) but I see the error " reboot and select proper Boot device or insert Boot media in select Boot device and press a key " I have tried CD and... (0 Replies)
Discussion started by: rpf
0 Replies

5. Infrastructure Monitoring

Solaris 10 - starting snmpdx at boot time on a port other than 161

Hi All, Can we start the snmpdx on another port at boot time on solaris 10 instead of the default 161 port? What is the configuration file to set this? We can make it run in a different port after the system boots up by using snmpdx -p port_number This requirement is because i have an... (1 Reply)
Discussion started by: Mr. Zer0
1 Replies

6. HP-UX

help auto starting app on boot

Hi I need a bit of help figuring out how to auto start an application on boot on an HPUX. I am a fairly exp AIX guy now working an HP shop. I use to change a /etc/rc... file. Any advise would be a great help TIA. –K If it is a help the program is a DB and runs as root /usr/ud{##}/startud... (3 Replies)
Discussion started by: KmJohnson
3 Replies

7. Solaris

solaris boot problem boot error loading interpreter(misc/krtld)

When I installed the SOLARIS 10 OS first time, the desktop would not start up, this was because of network setup. Reinstalled worked. After a week due to some problem I had to reinstall OS, installation went fine and but when i reboot I get this error. cannot find mis/krtld boot error loading... (0 Replies)
Discussion started by: johncy_j
0 Replies

8. SCO

Scologin not starting on boot up

Hi, I just finished swapping my computer to a new case. However, now when I try booting up the machine, I cannot get the Scologin to start. It just stays at the screen which says "Scologin is starting (/dev/tty02). Please wait.....". Does anyone have any idea how to fix this? Thanks (1 Reply)
Discussion started by: AtALoss
1 Replies

9. UNIX for Advanced & Expert Users

Cannot boot - Boot : Panic : File size out of range (EWS-UX/V unix)

Hey ! I am running EWS-UX/V (Rel 4.2) on NEC EWS/4800/330 station and I am having problems rebooting my station : I am getting the following message on display : BOOT : PANIC : File size out of range. According to user guide, this error is occuring when a file exceeding the limit and/or... (2 Replies)
Discussion started by: fredo
2 Replies
Login or Register to Ask a Question