Created
April 20, 2018 03:46
-
-
Save vpnwall-services/3435442163e29199ca5ae7cac7de171b to your computer and use it in GitHub Desktop.
[Systemd Service Template] Skeleton for a new Systemd service #linux #systemd # 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
#Put me in /lib/systemd/system/ | |
[Unit] | |
Description=My Miscellaneous Service | |
After=network.target | |
[Service] | |
Type=simple | |
User=nanodano | |
WorkingDirectory=/home/nanodano | |
ExecStart=/home/nanodano/my_daemon --option=123 | |
Restart=on-failure # or always, on-abort, etc | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
why there is "After parameter under unit module"