Now the default install of the ocserv create the /var/run/ocserv with root:wheel,but ocserv worker process run as _ocserv:_ocserv permission,so after installed,ocserv failed to start when running "service ocserv onestart". manually change the owner of the dir to _ocserv:_ocserv fix the problem.
Created attachment 182298 [details] patch - Fix permissions for /var/run/ocserv
Created attachment 182304 [details] patch
The attached patch should fix the problem. Thanks for reporting!
Created attachment 182308 [details] patch
Created attachment 182310 [details] patch
A commit references this bug: Author: cpm Date: Fri May 5 10:08:34 UTC 2017 New revision: 440146 URL: https://svnweb.freebsd.org/changeset/ports/440146 Log: - Fix ownership and permissions in /var/run/ocserv - Bump PORTREVISION PR: 219054 Reported by: Joy <amutu@amutu.com> Changes: head/net/ocserv/Makefile head/net/ocserv/pkg-plist