mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-10 11:45:18 +08:00
16 lines
501 B
Desktop File
16 lines
501 B
Desktop File
[Unit]
|
|
Description=OpenVPN connection to %i
|
|
|
|
[Service]
|
|
PrivateTmp=true
|
|
Type=forking
|
|
ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --writepid /run/openvpn@%i.pid --status-version 2
|
|
PIDFile=/run/openvpn@%i.pid
|
|
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_READ_SEARCH
|
|
LimitNPROC=10
|
|
DeviceAllow=/dev/null rw
|
|
DeviceAllow=/dev/net/tun rw
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|