Unix Technical Forum

Sxxfile won't work when the machine boots up

This is a discussion on Sxxfile won't work when the machine boots up within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> hi all: i made a simple file as S91file and hoped it would be started automatically whne the machine ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 05:09 AM
dave,au
 
Posts: n/a
Default Sxxfile won't work when the machine boots up

hi all:


i made a simple file as S91file and hoped it would be started automatically whne
the machine reboots. the file is under /etc/rc2.d with 744. no, it doesn't work!
i have to use cmd "sh S91file" to start.

any ideas?

_dave

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 05:10 AM
Greg Andrews
 
Posts: n/a
Default Re: Sxxfile won't work when the machine boots up

dave,au <dave_member@newsguy.com> writes:
>
>i made a simple file as S91file and hoped it would be started
>automatically whne the machine reboots. the file is under
>/etc/rc2.d with 744. no, it doesn't work!
>
>i have to use cmd "sh S91file" to start.
>
>any ideas?
>


The /sbin/rc2 script invokes files whose names don't end in ".sh"
with this command:

/sbin/sh /etc/rc2.d/S91file start

Does your script perhaps not use full paths to programs that it
tries to invoke, or depend on variables that exist in root's
interactive login environment, but don't exist in the startup
shell environment?

Have you put any test commands in your script, such as
echo "invoked S91files" >> /tmp/S91files.test


-Greg
--
Do NOT reply via e-mail.
Reply in the newsgroup.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:25 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com