After i user your script unifi-linux-utils/startup-scripts/unifi.service
i got the error: kernel: cgroup: fork rejected by pids controller in /system.slice/unifi.service
I added the line: TasksMax=infinity
into the unifi.service and solved the problem.
I use it in openSuSE Leap 42.2 and i sent it only to know it.
After i user your script unifi-linux-utils/startup-scripts/unifi.service i got the error: kernel: cgroup: fork rejected by pids controller in /system.slice/unifi.service I added the line:
TasksMax=infinity
into the unifi.service and solved the problem. I use it in openSuSE Leap 42.2 and i sent it only to know it.