
Voilà, j'ai installé OpenVPN (à l'aide de Yast) sur mon serveur dédié qui tourne sous linux SuSE 9.3, le VPN fonctionne très bien cependant à chaque fois que je redémarre le serveur, OpenVPN ne se lance pas, pourtant dans la doc d'OpenVPN on peut lire ceci :
If you install OpenVPN via an RPM package on Linux, the installer will set up an initscript. When executed, the initscript will scan for .conf configuration files in /etc/openvpn, and if found, will start up a separate OpenVPN daemon for each file.
J'ai bien créé le dossier /etc/openvpn et j'y ai placé mon fichier .conf.
Quand je lance OpenVPN en tappant
- Code: Tout sélectionner
openvpn server.conf
Et quand je démarre OpenVPN en tappant
- Code: Tout sélectionner
./openvpn start
Il existe aussi un répertoire :
/usr/share/doc/packages/openvpn/suse avec à l'intérieur un seul fichier nommé "openvpn.init"
Dans ce fichier il est écrit au début :
# To install :
# copy this file to /etc/rc.d/init.d/openvpn
# use the runlevel editor in Yast to add it to runlevel 3 and/or 5
# shell> mkdir /etc/openvpn
# make .conf or .sh files in /etc/openvpn (see below)
et un peu plus loin :
# Author's Notes:
#
# I have created an /etc/init.d init script and enhanced openvpn.spec to
# automatically register the init script. Once the RPM is installed you
# can start and stop OpenVPN with "service openvpn start" and "service
# openvpn stop".
Cependant je n'ai pas de répertoire /etc/rc.d/init.d/openvpn mais j'ai bien deux répertoires /etc/rc.d et /etc/init.d et dans chacun un fichier "openvpn".
Dois-je remplacer un des fichiers "openvpn" se trouvant dans init.d ou rc.d par "openvpn.init" se trouvant dans
/usr/share/doc/packages/openvpn/suse ?