Changes between Version 12 and Version 13 of OpenVPN-systemd-use


Ignore:
Timestamp:
01/18/22 00:56:51 (2 years ago)
Author:
tct
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenVPN-systemd-use

    v12 v13  
    55**Source** https://github.com/OpenVPN/openvpn/blob/master/distro/systemd/README.systemd
    66
    7 
    8  OpenVPN **must** be compiled with `systemd` support.[[br]]
    9 
    10  Use the correct OpenVPN supported `systemd` `.service` files.
    11 
    12 === Build OpenVPN with `systemd` support
    13 
    14 When you build the openvpn binary use the configure option `--enable-systemd`
     7== Verify OpenVPN `systemd` support
    158
    169{{{
    17 ./configure --enable-systemd
     10$ openvpn --version
    1811}}}
     12  Required FLAG `enable_systemd=yes` - This FLAG **must** be listed to continue.
    1913
    20 === Verify OpenVPN `systemd` support
    21 
    22 {{{
    23 $ openvpn --version | grep systemd
    24 }}}
    25   Look for `enable-systemd=yes` in the output.
    26 
    27 === Using OpenVPN with `systemd` support
     14== Using OpenVPN with `systemd` support
    2815
    2916In order to use OpenVPN with `systemd` please use the correct `systemd` `.service` file.
     
    4835=== Start at boot
    4936 
    50   Replace `systemctl start ...` with `systemctl enable ...`
     37  Replace `$ systemctl start ...` with `$ systemctl enable ...`
    5138
    52 === Interrogate `systemd`
     39== Interrogate `systemd`
    5340
    54   Use `systemctl` to show your current `systemd-daemon` state.
     41Show current `systemd-daemon` state
     42{{{
     43$ sudo systemctl
     44}}}
    5545
    56   Other `systemd` questions are probably best answered by reading `man systemd`
     46Show status for Openvpn
     47{{{
     48$ systemctl status openvpn-server@{Server-config}
     49}}}
    5750
    58 === Note
     51=== Use `journalctl`
    5952
    60   * `openvpn@.service` is **deprecated**.
    61   * `openvpn.service` is **obsoleted**. (This is only used for backward compatibility)
     53For a running server
     54{{{
     55$ journalctl -u openvpn-server@{Server-config}
     56}}}
     57  To use `systemd-journald` Openvpn must **not** use `--log`/`--log-append`. Instead the log is redirected to `journald`.
    6258
    63 === Known issues
    6459
    65  https://community.openvpn.net/openvpn/ticket/945 [[br]]
    66  https://community.openvpn.net/openvpn/ticket/1089
     60=== Notes
     61
     62* `openvpn@.service` is **deprecated**.
     63* `openvpn.service` is **obsoleted**. (This is only used for backward compatibility)
     64
     65== Known issues
     66
     67* https://community.openvpn.net/openvpn/ticket/945 [[br]]
     68* https://community.openvpn.net/openvpn/ticket/1089