Service 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:

Service does not support chkconfig.

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:

# chkconfig: 2345 95 20
# description: Description of the script
# processname: Echoing ayam.

echo "ayam" > /tmp/test.txt

Now works like a charm.



Popular posts from this blog

SAP Backdoors {placeholder Post]

Fiori Apps Keep Calling Internal Hostname / Internal FQDN