Network Troublshooting > Linux Servers Support

service vpnserver does not support chkconfig

(1/1)

tuxi:
Hi, I am trying to setup vpn server using softether and following this guide : https://www.softether.org/4-docs/1-manual/7._Installing_SoftEther_VPN_Server/7.3_Install_on_Linux_and_Initial_Configurations

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

jeilsoft:
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 ( : )

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

johnkingx:
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.

AaronSkido:
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.

Navigation

[0] Message Index

Go to full version