I have a machine with following configuration
SunOS XXXXXXXXXXX 5.7 Generic_106541-16 sun4u sparc SUNW,Ultra-80
I intent to put some restarts scripts in place so that i can start the processes that were running on the machine in case of a accidental shutdown.
I tried puttting stuff in in /etc/rc3.d but it does not seem to work.
I renamed the script to start with S but still no luck.
Can somebody advise whether this is the right approach ?
Also the scripts in /rc3.d will run with root privileges but i want to run the processes as some other user.
So for that if i do su - <login_name> in the script the next command in the script will not be run by the user it will be still run by root.
So please advise what is the most recommended approach that people tend to follow in these cases.
Thanks in advance.