LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Deleting rc.local (https://www.linuxquestions.org/questions/linux-newbie-8/deleting-rc-local-4175563273/)

osama.mansoor 01-07-2016 12:06 AM

Deleting rc.local
 
Hi,

My Oracle Unbreakable Linux was restarted unexpectedly several times so i found that due to some virus attacks (SFEWFESFS) it gets restarted so i just delete this file but after some time it comes again so i google it and found link

http://stackoverflow.com/questions/2...tarting-automa

On this forum a guy (Isospin) suggested to delete rc.local

Can i delete rc.local is it safe for os?

/dev/random 01-07-2016 12:12 AM

It would be better to rename it instead, but delete it, just rename it, if it boots properly after that, open up rc.local and see what was added, just remove it.
rename the file back to its original name and you should be okay.

osama.mansoor 01-07-2016 01:19 AM

i just rename rc.local and reboot system but rc.local not created

osama.mansoor 01-07-2016 03:53 AM

1 Attachment(s)
how can i delete s99local pointing to rc.local

jpollard 01-07-2016 05:20 AM

Just remove the S99local link.

There is no need to remove the rc.local file, or even renaming it.

The system init starts scripts as specified by S99local link- Being "S" causes the link to be run at boot time, the "99" is the last number in the sequence, so it is run last. There can even be other S99 links there - they will be run in alphabetical order; so if one doesn't exist - it doesn't get used.

The reason to not delete the rc.local file is that updates to the system may recreate it... and the file may or may not have the header specifying how the chkconfig command is used to create the link (it can also delete the link with "chkconfig local off")

osama.mansoor 01-07-2016 11:15 PM

thanks jpollard for you answer.

so do i just need to remove S99local link from all where it is pointing towards rc.local ?

and how can i remove the link ?

osama.mansoor 01-08-2016 12:52 AM

3 Attachment(s)
Actually my mission is to

1) Stop process names as "sfewfesfs" its running
2) Delete or rename rc.local to remove to run sfewfesfs at boot time
3) Remove Link S99local pointing towards rc.local or Delete S99local because it runs rc.local

All screen shots are attached

jpollard 01-08-2016 05:09 AM

chkconfig local off

rm S99local

Read some documentation on administering Oracle Unbreakable Linux systems. You paid for it.


All times are GMT -5. The time now is 12:26 PM.