AIX Boot Scripts


 
Thread Tools Search this Thread
Operating Systems AIX AIX Boot Scripts
# 1  
Old 08-13-2010
AIX Boot Scripts

Hi, can someone point me to the bootup file where I can add a samba start up script so I dont have to manually start samba everytime we reboot the server? Thanks.
# 2  
Old 08-13-2010
Look at /etc/rc.d/init.d and /etc/rc?.d. Put your startup script in the init.d directory and link to it from the run level you want it to start at. Google AIX init.d for more info if you need it, tons of tutorials out there.
# 3  
Old 08-16-2010
can I put the startsmb script in /etc/inittab?
# 4  
Old 08-16-2010
Quote:
Originally Posted by NycUnxer
can I put the startsmb script in /etc/inittab?
yes Smilie
# 5  
Old 08-16-2010
Quote:
Originally Posted by ygemici
yes Smilie
How? lol

All the lines in that file look like parameters:
tty2:2:respawn:/usr/sbin/getty /dev/tty2

I just want to add /usr/local/bin/startsmb
# 6  
Old 08-16-2010
Quote:
Originally Posted by NycUnxer
How? lol

All the lines in that file look like parameters:
tty2:2:respawn:/usr/sbin/getty /dev/tty2

I just want to add /usr/local/bin/startsmb
Code:
mkitab smb:2:once:/usr/sbin/smbd
mkitab nmb:2:once:/usr/sbin/nmbd

This User Gave Thanks to ygemici For This Post:
# 7  
Old 08-16-2010
Thank you!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Boot/Shutdown scripts

Server: Redhat 6.2 Goal: Startup script/Shutdown Script Overview: I'm just doing a very basic test. I'm not getting chkconfig involved. Research so far: I've found a few different ways of getting this to work, some say I can just drop the scripts in the corresponding rc directory. Others... (4 Replies)
Discussion started by: HayekSplosives1
4 Replies

2. AIX

Can't boot AIX

Good afternoon there, One of my friend gave me an old IBM 44P Model 170 (I've planned to use it to learn AIX that I don't know at all) (I know a bit GNU/Linux (Debian, Archlinux, Red Hat, Slackware)). But, unfortunately, the computer doesn't start properly and I don't have any idea why ;(. ... (6 Replies)
Discussion started by: firstpost
6 Replies

3. Solaris

Autorun shell scripts upon system boot up

Hello i searched in google and it seems i cannot find a detailed instruction on how to setup autorun-ing custom shell script upon boot up, someone kind enough to point me to a link? or a guide. We use Solaris 10. Basically my script just contains sending email when system bootup. (3 Replies)
Discussion started by: ryandegreat25
3 Replies

4. AIX

AIX does not boot after power on

We have a RS6000, model B50, type 7046, where I installed AIX 4.3.3 But, if the power goes off, the operating system does not restart, and I have to go there and push the button to start AIX again. Is there any way this procedure to be avoided, this is, I want the AIX to start automatically... (9 Replies)
Discussion started by: sebastia.net
9 Replies

5. Ubuntu

system not booting after running local boot scripts

I have two systems in my computer . I update the ubuntu system these days and always interrupt it and exit the system . now the system cannot boot after Running local boot scripts(/etc/rc.local), it just stops there. i have to terminate the gnome display manager. what can i do with it ? thank... (0 Replies)
Discussion started by: tcb3210
0 Replies

6. AIX

AIX hangs on boot

Hi guys, Got a tiny bit of a problem on one of our servers here at work. I installed AIX 5.3 on the server and that went fine. Then I upgraded to ML 5300-05-01, but now the system just hangs on boot. The system starts up and the monitor comes on in few minutes, but a few seconds later when... (6 Replies)
Discussion started by: drchris
6 Replies

7. UNIX for Dummies Questions & Answers

Boot scripts?

Hello, I am new to Solaris. I have installed a Solaris 10.0. As default its shell is sh (#) and I want to modify boot records of my Solaris. I want to run some shell scripts, change shell, change PATH environment and similiar things after boot automaticially. I don't know which files are read... (1 Reply)
Discussion started by: XNOR
1 Replies

8. UNIX for Dummies Questions & Answers

AIX scripts

Hi I need to schedule some tasks on AIX. At first I must copy files from folder on second AIX server to my primary server. This job schould be done in 1 hour intervals. I want to get only new files. Second script is needed for old files cleaning. It is necesary to delete files older than... (3 Replies)
Discussion started by: piooooter
3 Replies

9. AIX

AIX 4.3.3 boot error

We just got a machine with pre installed AIX 4.3.3. It's and oldish RS/6000 F80. When I power it on, the boot sequence advances finely, until it says Welcome to AIX, closing stdin and stdout, or something like that. From that point on the diagnostic display keeps counting the usual way for... (3 Replies)
Discussion started by: osee
3 Replies
Login or Register to Ask a Question