Last active
November 9, 2024 17:25
-
-
Save moaoa/f6b5b03601ff72aee492e485bca152b0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| // vi /etc/systemd/system/foo.service | |
| [Unit] | |
| Description=Run a command at startup | |
| [Service] | |
| ExecStart=/path/to/your/command | |
| [Install] | |
| WantedBy=multi-user.target | |
| // sudo systemctl enable foo.service | |
| // sudo systemctl start foo.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment