Who rebooted my server?

Who can reboot the server, other than root?

I just found out the server was rebooted.

Is there a way to find what happened to the reboot, such as who did it or if it is a crash, what program crashed it?

By the way, how to add "apachectl start" to the boot file so every time it is booted, apache is started?

I found this "
Starting at Boot-Time
If you want your server to continue running after a system reboot, you should add a call to httpd or apachectl to your system startup files (typically rc.local or a file in an rc.N directory). This will start Apache as root. Before doing this ensure that your server is properly configured for security and access restrictions. The apachectl script is designed so that it can often be linked directly as an init script, but be sure to check the exact requirements of your system."

1 But I can not find rc.local or rc.N on my server.
2 I already specify apache to run as a different username in httpd.conf file, do I have to log in as a none root to apachectl start to make it safer?

 

 

 

 

Top