Last active
June 11, 2022 20:24
-
-
Save smartass08/7b9b0da510e4c603e6f849f3367b3cea to your computer and use it in GitHub Desktop.
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
[Unit] | |
Description=Your service description | |
[Service] | |
Restart=always | |
WorkingDirectory=/home/user/to/path | |
ExecStartPre=/usr/bin/whatever/app command to execute before actual command | |
ExecStart=/usr/bin/whatever/app main command | |
[Install] | |
WantedBy=default.target |
sudo loginctl enable-linger $USER
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
copy this to
~/.config/systemd/user/
yes user is actual word "user" (Don't get confused it by your username)systemctl --user [start || status || stop] example.service