I've been an AIX admin for about 5 years, however I'm currently writing our Linux standards. I admit, I'm fairly green when it comes to Linux but I've read a lot about runlevels and think I have it figured out.....
I'm trying to add a custom script on RHEL5 that runs on reboot. I've written a very simple script and created a link to it in /etc/rc6.d
The problem is the script never runs. Can you help?
user@hostname:/etc/rc6.d-> ls -l /etc/init.d/custom
-rwxr-xr-x 1 root root 72 May 29 08:47 /etc/init.d/custom
user@hostname:/etc/rc6.d-> ls -l /etc/rc6.d/K74custom
lrwxrwxrwx 1 root root 16 May 29 09:10 /etc/rc6.d/K74custom -> ../init.d/custom
I've tried about 10 different numbers (after the K) but the thing still never runs. If I call my script from a currently working rc6.d script it works fine.
Here is my script.
user@hostname:/etc/rc6.d-> cat /etc/init.d/custom
#!/bin/sh
echo "reboot test" > /usr/reboot.log
date >> /usr/reboot.log
I'm trying to add a custom script on RHEL5 that runs on reboot. I've written a very simple script and created a link to it in /etc/rc6.d
The problem is the script never runs. Can you help?
user@hostname:/etc/rc6.d-> ls -l /etc/init.d/custom
-rwxr-xr-x 1 root root 72 May 29 08:47 /etc/init.d/custom
user@hostname:/etc/rc6.d-> ls -l /etc/rc6.d/K74custom
lrwxrwxrwx 1 root root 16 May 29 09:10 /etc/rc6.d/K74custom -> ../init.d/custom
I've tried about 10 different numbers (after the K) but the thing still never runs. If I call my script from a currently working rc6.d script it works fine.
Here is my script.
user@hostname:/etc/rc6.d-> cat /etc/init.d/custom
#!/bin/sh
echo "reboot test" > /usr/reboot.log
date >> /usr/reboot.log