File: README.Debian

package info (click to toggle)
ocserv 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,924 kB
  • sloc: ansic: 49,159; sh: 12,767; makefile: 414; xml: 29
file content (25 lines) | stat: -rw-r--r-- 784 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Using ocserv with systemd socket activation
-------------------------------------------

ocserv can run in two modes: standalone or socket-activated.

By default, ocserv in Debian is configured to be standalone mode,
and listens on the standard https port 443.

If you want to switch to systemd's socket activation feature, run:

cp /usr/share/doc/ocserv/systemd/socket-activated/* /etc/systemd/system/
systemctl daemon-reload
systemctl enable ocserv.socket

To change the port that ocserv listens on when using ocserv.socket,
create an override file /etc/systemd/system/ocserv.socket.d/*.conf
with the following content:

    [Socket]
    ListenStream=
    ListenDatagram=
    ListenStream=12345
    ListenDatagram=12345

For more details, see systemd.unit(5) and systemd.socket(5).