Starting processes automatically on bootup


 
Thread Tools Search this Thread
Operating Systems SCO Starting processes automatically on bootup
# 1  
Old 10-18-2008
Starting processes automatically on bootup

Hello - We have setup printers to startup in the /etc/rc.d/8 directory and when the SCO system is booted this script should kick them off or start them up but it doesn't. So I have to start it from root and leave the window open. I know this isn't right and trying to figure out what's missing. In the /var/adm/rc2.log it shows:

/etc/rc.d/8/userdef: /dev/ttyr031: cannot open
/etc/rc.d/8/userdef: /dev/ttyr030: cannot open
/etc/rc.d/8/userdef: /dev/ttyr028: cannot open
/etc/rc.d/8/userdef: /dev/ttyr029: cannot open
/etc/rc.d/8/userdef: /dev/ttyr027: cannot open

Can someone tell me how to fix this?

Thank you!Smilie
# 2  
Old 10-28-2008
Not sure (have no experience with SCO) but it could be that your script is being started before the device driver has been loaded or before some other necessary component has been started. Try putting your script inside /etc/rc.d/rc.local, which is usually where post-startup scripts go. On most linux distributions and solaris, the scripts inside such a directory are numbered, S10network, S20http-server, etc., so that the OS runs them in order.
# 3  
Old 10-28-2008
Hi - thanks for responding. I do not have the rc.local under /etc/rc.d; any other suggestions? Here's what I have:

drwxr-xr-x 2 root sys 512 Oct 22 1999 0
drwxr-xr-x 2 root sys 512 Oct 22 1999 1
drwxr-xr-x 2 root sys 512 Oct 22 1999 2
drwxr-xr-x 2 root sys 512 Oct 22 1999 3
drwxr-xr-x 2 root sys 512 Oct 22 1999 4
drwxr-xr-x 2 root sys 512 Oct 22 1999 5
drwxr-xr-x 2 root sys 512 Oct 22 1999 6
drwxr-xr-x 2 root sys 512 Oct 26 1999 7
drwxr-xr-x 2 root sys 512 Oct 8 10:21 8
drwxr-xr-x 2 root sys 512 Oct 22 1999 9

Last edited by dbm7230; 10-28-2008 at 08:25 PM..
# 4  
Old 10-28-2008
Does each correspond to an init level??
# 5  
Old 10-29-2008
Yes; however I noticed that we had a few problems with the terminal settings and had to change a couple. I think 2 are not named correctly in the file. I will verify this again later today and make sure. Still if only 2 are wrong why didn't the other ones work? Right now, I have to start the file "userdef" in a root window and leave the window open after the system is rebooted. I know this is not right. This was orginally setup by one of our hardware vendors and when I brought it to his attention, he said he checked everything and does not know any reason why this won't work. So for now, I make sure daily this window does not close. The hardware vendor is still trying to figure this out as well. Hope you can help!
# 6  
Old 10-29-2008
Quote:
Right now, I have to start the file "userdef" in a root window and leave the window open after the system is rebooted. I know this is not right.
Thats because you executed the program in an interactive shell... You should in this case use
Code:
nohup <command/prog> &

# 7  
Old 10-29-2008
Quote:
In the /var/adm/rc2.log it shows:

/etc/rc.d/8/userdef: /dev/ttyr031: cannot open
/etc/rc.d/8/userdef: /dev/ttyr030: cannot open
/etc/rc.d/8/userdef: /dev/ttyr028: cannot open
/etc/rc.d/8/userdef: /dev/ttyr029: cannot open
/etc/rc.d/8/userdef: /dev/ttyr027: cannot open
Do those devices exist?

What is your init default (or runlevel)?
(who -r on most unix)

You should have a /etc/inittab, what is there?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. UNIX and Linux Applications

Autosys job not starting automatically

hi I have created autosys job but its not auto starting , also tried job control > start job but doesn't start that way only way it starts is force_startjob. why ? :( thanks (0 Replies)
Discussion started by: user0489
0 Replies

3. AIX

init not starting processes from inittab

Hello, I'm having a problem starting the cron daemon automatically from inittab, let me provide the details below: We are having five equally installed machines. One of them was upgraded in the past, one we upgraded recently, both from 5300-05-06 to 5300-07-01-0748. On the upgraded... (6 Replies)
Discussion started by: hybr1d
6 Replies

4. Solaris

Stopping NFS from starting at bootup - Solaris 10

Does anyone know how I stop nfs/lockd and all of the associated services from starting at bootup? There's nothing in the /etc/rc*.d files to rename. That was my first idea. I also tried renaming /etc/init.d/nfs.server to something else, but that did not work either. Any ideas would be greatly... (2 Replies)
Discussion started by: amheck
2 Replies

5. UNIX for Dummies Questions & Answers

starting processes with timeout?

Does anyone know it it is possible to start a program with a timeout, so that it is automatically killed if the timeout expires? If yes, how? (6 Replies)
Discussion started by: soheil.samii
6 Replies

6. UNIX for Dummies Questions & Answers

Why not automatic bootup

Evry time I start up my mavhine ,have to type in unix at Boot : Is there a way unix should bootup automatically? Asif (2 Replies)
Discussion started by: asif iqbal
2 Replies

7. UNIX for Dummies Questions & Answers

Bootup Error

Hi all The following error was displayed when a sco server (5.0.5) was booted. What should be done to overcome the problem. Replies appreciated. Bios 03.0 0130688 KB memory good 01 processor(s) in system remote console dialing on, please wait connect fail : modem off cpu clock... (6 Replies)
Discussion started by: raguramtgr
6 Replies

8. UNIX for Advanced & Expert Users

bootup script

Hello there I need to run a script whenever i reboot or startup my HP-UX server. This script adds some routes to the route table, and it start third party aplications like "Star Manager". I thought i could do this simply putting the script in "/sbin/init.d, and a link to the script in... (7 Replies)
Discussion started by: vascobrito
7 Replies

9. UNIX for Dummies Questions & Answers

Triple bootup

Hi guys, May I know how to install Solaris 8 in the way that I can triple boot it with my the other two OS: WIndows ME and Windows 2000 Pro. Can you all please kindly advise me on how to setup the triple boot process inorder to allow Windows ME to be the default OS when being ask to choose... (1 Reply)
Discussion started by: cia
1 Replies

10. UNIX for Dummies Questions & Answers

Starting Processes

I am currently running SCO OpenServer. When the machine is restart it automatically intitiates processes that allow me to use the ARCserv backup software... Recently, these process were killed and I would like to restart them. The problem is I dont know the name or location of the files invoked... (1 Reply)
Discussion started by: LowOrderBit
1 Replies
Login or Register to Ask a Question