November 23, 2024, 09:31:56 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: service vpnserver does not support chkconfig  (Read 18901 times)

Offline tuxi

  • Linux Noob !
  • *
  • Posts: 20
service vpnserver does not support chkconfig
« on: July 26, 2014, 05:21:45 PM »
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: [Select]
$chkconfig --add vpnserver
service vpnserver does not support chkconfig

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: [Select]
service vpnserver start

Offline jeilsoft

  • New Member
  • Posts: 1
Re: service vpnserver does not support chkconfig
« Reply #1 on: November 10, 2014, 02:36:10 AM »
Please check vpnserver bash file.
Make sure following line use correct format.

Code: [Select]
# chkconfig: 2345 99 01
You may miss the colon character ( : )

Offline johnkingx

  • Linux Noob !
  • *
  • Posts: 4
Re: service vpnserver does not support chkconfig
« Reply #2 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

Offline johnkingx

  • Linux Noob !
  • *
  • Posts: 4
Re: service vpnserver does not support chkconfig
« Reply #3 on: November 11, 2014, 04:32:56 AM »
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.

Offline AaronSkido

  • Linux Noob !
  • *
  • Posts: 15
service vpnserver does not support chkconfig
« Reply #4 on: September 18, 2017, 04:40:34 PM »
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.