runit template
sudo groupadd webapp
sudo useradd -g webapp -d /var/go -s /bin/bash go
sudo mkdir /var/go
sudo chown go:webapp /var/go
Make sure to create the directory for logs and set the owner right Next copy the log/config file to that dir ie. /var/log/myapp/config
update to have /etc/security/limits.conf
* soft nofile 65000
* hard nofile 65000
documentation at: http://smarden.org/runit/index.html