I wrote a simple bash script to reboot the server and used a cron job to initiate the reboot every morning, but I get permission denied error messages in my emails showing me it failed.
The script uses the shutdown -r command.
I think its because I have SElinux enabled.
What selinux command can I use to make an exception for this to work?
I still want SElinux enabled.
I know what your thinking...linux does not need to be rebooted everyday, but there is a valid reason why, but I don't want to go into that.
This is on a centos 5.4 64-bit server.