81
Linux Servers Support / Re: service vpnserver does not support chkconfig
« Last post by johnkingx on November 11, 2014, 04:30:54 AM »Here is how to fix this:
(Assume the name of my script is myscript)
1 – Copy your script into /etc/init.d folder
2 – cd /etc/init.d
3 – chmod +x myscript
4 – Add these lines, including #, right after #!/bin/bash or #!/bin/sh:
# chkconfig: 2345 95 20
# description: Some description
# What your script does (not sure if this is necessary though)
# processname: myscript
5 – chkconfig –level 2345 myscript on
http://www.linuxsolved.com
(Assume the name of my script is myscript)
1 – Copy your script into /etc/init.d folder
2 – cd /etc/init.d
3 – chmod +x myscript
4 – Add these lines, including #, right after #!/bin/bash or #!/bin/sh:
# chkconfig: 2345 95 20
# description: Some description
# What your script does (not sure if this is necessary though)
# processname: myscript
5 – chkconfig –level 2345 myscript on
http://www.linuxsolved.com