Create systemd service unit
Write a systemd service file at /etc/systemd/system/. Adjust User, ExecStart, and dependencies.
Creates a systemd unit file to manage a custom service (a background daemon, a Python/Node app, etc.). After creation, run systemctl daemon-reload and systemctl enable to activate.
When you need this: When you need a process to run as a background service and restart automatically on failure.
Variables
Command
2 views
0 copies
Related in this category
Log in to save
Free account — save snippets into your own collections.