Tuesday, 13 August 2013

Execute a script on startup of SUSE reboot

Execute a script on startup of SUSE reboot

I'm trying to execute a script called "testing" on startup of my SUSE
reboot. So I placed this simple script to '/etc/init.d' The code is like
this
#!/bin/bash
# ScriptName=testing
cat > ~/output << "EOF"
This text is generated on startup!!
EOF
After that, I execute these command
chmod +x /etc/init.d/testing
touch /etc/init.d/rc.d/rc3.d/S12testing
But after I reboot the system, nothing happened.
There must be something I missed out.
Here is the reference I searched.

No comments:

Post a Comment