Network Troublshooting > Linux Servers Support

service vpnserver does not support chkconfig


Hi, I am trying to setup vpn server using softether and following this guide :

Now problem is that when I go to step where I have to add it as server it gives following error:

--- Code: ---$chkconfig --add vpnserver
service vpnserver does not support chkconfig
--- End code ---

I have checked permission of /etc/rc.d/init.d/vpnserver , its as desired.. donno where is the problem , but I can use command :

--- Code: ---service vpnserver start
--- End code ---

Please check vpnserver bash file.
Make sure following line use correct format.

--- Code: ---# chkconfig: 2345 99 01
--- End code ---

You may miss the colon character ( : )

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

Please make sure the file vpnserver is created in /etc/init.d. The file should be started with # without any empty line above.
Function of “chkconfig -add” is add the service to auto start only. You can do that by adding a command for starting service in rc.local.

I think 1GB ram is not contemporary. It is not able to take high level command. Same problem happen when i installed after effect on my computer though im using 2 GB ram.


[0] Message Index

Go to full version