Link to home
Start Free TrialLog in
Avatar of adrianmak
adrianmak

asked on

autorun user scripts

In linux , I can add script in rc.local so that it can run automatically when system boot up.

How about in solaris ? I cannot find such file
Avatar of Otetelisanu
Otetelisanu

In Solaris is for
System up in /etc/rc2.d
for System down in /etc/rc0.d.

For System down only with
shutdown.
With reboot the system not start
the files in /etc/rc0.d
do you mean to run the scripts each time the system boots, or just when a specific user logs on?
In Solaris for user logs on
is 2 file.
1.- /etc/profile (For all users)
2.- $HOME/.profile (sh and ksh schell) for
     single user.
> 1.- /etc/profile (For all users)

NO.

Not for users using other shell than ash, bash, bsh, esh, jsh, ksh, lsh, msh, pdksh, rksh, rsh(HP-UX only), sh, tsh, (and probably some more), as login shell.
yes OK!
I write as example
for ksh and sh
Avatar of adrianmak

ASKER

I am not talking about user profile
but system auto run user scripts when system bootup
ASKER CERTIFIED SOLUTION
Avatar of shanechambers
shanechambers

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
how about reading  /etc/init.d/README
It describes all you need to know ;-)
>how about reading  /etc/init.d/README

I never knew that file exsisted! (probably because I started on old AT&T System 5 ;)