modifying start up steps


 
Thread Tools Search this Thread
Operating Systems HP-UX modifying start up steps
# 1  
Old 05-08-2008
modifying start up steps

I tried search and didn't see anything - if there is a thread please point me to it -

I want to add a couple of statements to the start up steps basically to touch a file and set the owner & group on it.

I want this to happen every start-up. I haven't had sysadm class since HP-UX 9.x and I don't put anything as a rule in startup or shutdown.
I just don't recall what/where the startup steps are and I'm not sure which script/step to put it in nor exactly how to do that.

essentially I want this to happen:
touch /blah/blahh/myfile.dat
chown me:me /blah/blahh/myfile.dat

HP-UX B.11.23 U ia64

Or if there is a better way to accomplish this, I'm all ears.

thanks,
Lisa
# 2  
Old 05-09-2008
Hi,
Its easy, find out what runlevel you're on then add a script (copy & modify an existing one Snnnscriptname) on the specified directory
Code:
who -r # check the runlevel, script is to be placed on /sbin/rc3.d (if runlevel 3) or /sbin/rc2.d if runlevel 2 ...

Commands are put in start) section whereas Informative messages are put in start_msg) if my memory is not failing ... Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

New install, how to capture the steps?

Hi All, I am working on a new server Dell which I need to install RH version 6.1. I need to document every thing I do on this server, how do I capture screen shot as I do the install? I used to work on Sun Solaris, I can do this by connecting on COM port after that I had the console access... (2 Replies)
Discussion started by: samnyc
2 Replies

2. Shell Programming and Scripting

condense multiple steps

Can I do multiple passes in one step? sed 's/<FONT face='\''Arial'\'' size='\''3'\''>//' $file > tmpfile.html ; mv tmpfile.html $file sed 's/<FONT face='\''Courier'\'' size='\''3'\''>//' $file > tmpfile.html ; mv tmpfile.html $file sed 's/<\/FONT>//' $file > tmpfile.html ; mv... (2 Replies)
Discussion started by: dba_frog
2 Replies

3. Solaris

php installation steps..

hi .. i need procedure to install php on my solaris server.. i spent more than two weeks for this installation procedure.. but still couldn find a proper solution.. i have successfully enabled apache,tomcat,mysql,oracle .. this is the only issue am having rite now and its bothering me a lot.. ... (3 Replies)
Discussion started by: senkerth
3 Replies

4. UNIX and Linux Applications

Need Oracle Replication steps.

Hi All, Can anybody tell that Where is to find simple and easy steps of ORACLE replication process? Any help on this highly appreciated. http://www.unix.com/images/misc/progress.gif Thanks. (1 Reply)
Discussion started by: amit_27
1 Replies

5. Shell Programming and Scripting

Start program in background (or start crontab ahead of time)

Hey! I'm working on a script that will add a user, create some configfiles, and add a crontab for the user. The crontab looks like the following: @reboot /home/user/program config.conf & I would like for this process to start at the end of my script under the corresponding username by... (0 Replies)
Discussion started by: noratx
0 Replies

6. Shell Programming and Scripting

First steps in Perl

Hello, I want to start learning Perl, but I need some expert's advice:) Could you recommend me any online manual or book to start with? I have some experience with bash and C, so I am not a complete newbie in programming. What's your advise to start with? Thank you very much for your answers! ... (5 Replies)
Discussion started by: tsurko
5 Replies

7. HP-UX

Steps to Create a FileSystem HP-UX

Steps to create FileSystem, and later to modify size in HP-UX. Please (1 Reply)
Discussion started by: granador
1 Replies

8. IP Networking

Subnetting in 11 steps

As seen on Digg.com, here is my ip addressing article in full... Original Subnetting in 11 Steps article Subnetting in 11 Steps There are a few things that you will need to know first. I personally use 11 rules that I learned from Mike Vana. Below you will find the 11 rules as well as... (1 Reply)
Discussion started by: jking2100
1 Replies

9. Solaris

steps to ufsrestore

Hello Folks, I have to restore from remote tape sun solaris 10. It has to have mirror raid. I have to restore /,/usr, /var,/opt, /etc,/u01. Could you please give me detailed steps to do the above? I am new to solaris Thanks Ram (1 Reply)
Discussion started by: vr76413
1 Replies
Login or Register to Ask a Question