I'm working with Ubuntu Server 16.04.
[Unit] Description=NoDescpt [Service] ExecStart=/home/git/cmd/daphnei Restart=always KillSignal=SIGQUIT Type=notify NotifyAccess=all [Install] WantedBy=multi-user.target
And the related script
#!/bin/bash cd /home/git/hsfzmun/server /home/git/virtualenvs/hsfzmun/bin/daphne -b 0.0.0.0 -p 8001 -v2 config.asgi:channel_layer
What confused me is that the service will restart every 90 seconds, but I can't find out why.
I've found that the service's status is always
activating, which means
systemd doesn't know that the service has been started. However the script did start because I can visit my website. So what's wrong with it?