I'm new to systemd after upgrading to 16.04 and I'm encountering a problem with starting and restarting services. When I run (for example)...
systemctl start djalbat.com
...it seems to work, however I don't get the prompt back, it just appears to hang. If I
ctrl-c to get the prompt back and then test whether the service has started, it appears to have done so. I wonder what there is in the configuration that would cause this to happen? Here it is:
[Unit] Description=djalbat.com [Service] Type=forking WorkingDirectory=/var/www/djalbat.com/ ExecStart=/usr/bin/node ./bin/main.js start 2>&1 >> /var/log/djalbat.com.log [Install] WantedBy=multi-user.target
Also, if someone could point out the need for the last
WantedBy directive, that would be appreciated.