Changes between Version 12 and Version 13 of OpenVPN-systemd-use
- Timestamp:
- 01/18/22 00:56:51 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenVPN-systemd-use
v12 v13 5 5 **Source** https://github.com/OpenVPN/openvpn/blob/master/distro/systemd/README.systemd 6 6 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 15 8 16 9 {{{ 17 ./configure --enable-systemd 10 $ openvpn --version 18 11 }}} 12 Required FLAG `enable_systemd=yes` - This FLAG **must** be listed to continue. 19 13 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 28 15 29 16 In order to use OpenVPN with `systemd` please use the correct `systemd` `.service` file. … … 48 35 === Start at boot 49 36 50 Replace ` systemctl start ...` with `systemctl enable ...`37 Replace `$ systemctl start ...` with `$ systemctl enable ...` 51 38 52 == =Interrogate `systemd`39 == Interrogate `systemd` 53 40 54 Use `systemctl` to show your current `systemd-daemon` state. 41 Show current `systemd-daemon` state 42 {{{ 43 $ sudo systemctl 44 }}} 55 45 56 Other `systemd` questions are probably best answered by reading `man systemd` 46 Show status for Openvpn 47 {{{ 48 $ systemctl status openvpn-server@{Server-config} 49 }}} 57 50 58 === Note51 === Use `journalctl` 59 52 60 * `openvpn@.service` is **deprecated**. 61 * `openvpn.service` is **obsoleted**. (This is only used for backward compatibility) 53 For 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`. 62 58 63 === Known issues64 59 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