Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

switch user rc.local

RobeenMay 5 2021

Redhat Hat Linux 7
Hello Team,

I would like to aotoexecute a script after server reboot. I have scheduled it in /etc/rc.d/rc.local.

But I see it is executing as root user.

rc.local entry:
sh /home/ora12c/scripts/autostart.sh
How do I execute as ora12c user?
content of autostart.sh:
nohup ./server.sh &
Thanks,

Roshan

Comments
Post Details
Added on May 5 2021
1 comment
279 views