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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| ||||
| 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. |
| Thread Tools | |
| Display Modes | |
|
|