在Arch linux上我有OpenVpn服务器。 它运作良好。 但是,当我把它添加到它的configuration:
script-security 2 duplicate-cn up /etc/openvpn/server/script1.sh client-connect /etc/server/openvpn/script1.sh client-disconnect /etc/server/openvpn/script1.sh
它不会再启动了,不清楚错误是什么。 我是存在/etc/server/openvpn/script1.sh文件。
$ sudo systemctl restart [email protected] Job for [email protected] failed because the control process exited with error code. See "systemctl status [email protected]" and "journalctl -xe" for details.
并在systemctl status [email protected] :
systemd[1]: Stopped OpenVPN service for server123. systemd[1]: Starting OpenVPN service for server123... systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE systemd[1]: Failed to start OpenVPN service for server123.
而没有别的。 可能是什么原因?
您可以通过在前台运行OpenVPN来访问确切的错误代码。 如果只在添加这些行后才出现问题,那么它们要么有错误,要么出现在错误的地方。
我可以从configuration中知道,你正在使用两个不同的path,假设为同一个脚本,所以另一个可能是错误的。 实际上path是/etc/openvpn/server/script1.sh ,而不是/etc/server/openvpn/script1.sh ,即server/和openvpn/可能是错误的顺序?