You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# add new .service file
cp app.service /etc/systemd/system/
# or edit existing
systemctl edit --full app.service
# reload the systemd process (to pick up a changes)
systemctl daemon-reload
# enable service (to let it started automatically at boot)
systemctl enable app.service
Querying State and Logs
# information about the process, and the latest logs
systemctl status app.service
# tail service logs
journalctl -u app.service -f
Unit Management
# start service
systemctl start nginx.service
# stop service
systemctl stop nginx.service
# restart service
systemctl restart nginx.service
# reload service (without interrupting normal functionality)
systemctl reload nginx.service
# disable enabled service
systemctl disable app.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters