On my system I often get the message:
Usage Exception: Unable to start notifications server because it is already running. Use `aphlict restart` to restart it.
aphlict stop followed by aphlict start (via systemd, see below) does not have any effect. I have to wait a long time, before I can successfully restart it.
I am using this systemd unit to manage it:
[Unit] Description=Phabricator notification daemon After=network.target mysql.service [Service] User=phd Type=forking ExecStart=/opt/phabricator/phabricator/bin/aphlict start ExecStop=/opt/phabricator/phabricator/bin/aphlict stop [Install] WantedBy=multi-user.target