Last active
November 9, 2024 17:25
-
-
Save moaoa/f6b5b03601ff72aee492e485bca152b0 to your computer and use it in GitHub Desktop.
Revisions
-
moaoa revised this gist
Nov 9, 2024 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,14 @@ // 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 -
moaoa created this gist
Nov 6, 2024 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ [Unit] Description=Run a command at startup [Service] ExecStart=/path/to/your/command [Install] WantedBy=multi-user.target