Linux
Restart a systemd unit
Reload the unit file and restart the service in one pass.
Restart after editing the unit file
Whenever a .service file under /etc/systemd/system/ changes, reload the
daemon before restarting, or systemd keeps using the cached unit definition:
sudo systemctl daemon-reload
sudo systemctl restart myapp.serviceCheck what happened
systemctl status myapp.service
journalctl -u myapp.service -e --no-pager-e jumps to the end of the log; --no-pager prints straight to the
terminal instead of opening less.
Related
See pruning a stale Docker image cache if the unit in question runs a container.