service file for golang app
This worked.
[Unit]
Description=golang wiki initialization
[Service]
PIDFile=/tmp/gowiki.pid-4040
User=root
Group=root
WorkingDirectory=/var/www
ExecStart=/bin/bash -c '/var/www/wiki'
[Install]
WantedBy=multi-user.target
Because the Type=forking
services expect the parent service to exit before the service has actually started. If the parent never exits, then systemctl start will not give you back a prompt because it doesn't think that it's done executing.