does not support chkconfig
I wanted to add a script to run automatically on startup/reboot.
chkconfig it is.
my original script:
echo "ayam" > /tmp/test.txt
But when adding to chkconfig, using chkconfig --add
received the error:
Googling, found this two URLS:
But the 2nd link seems not that proper. We still need the "#" before chkconfig word. My final script was as below:
#!/bin/bash # chkconfig: 2345 95 20 # description: Description of the script # processname: Echoing ayam. echo "ayam" > /tmp/test.txt
Now works like a charm.