Last active
October 16, 2015 13:16
-
-
Save Nervengift/4b037ee4ad33563a9f3b to your computer and use it in GitHub Desktop.
Simple template unit file for running daemons via systemd
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=<description> | |
# Start after network (network may still not be online on start, see http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/) | |
#After=network.target | |
[Service] | |
# If the program forks to background | |
#Type=forking | |
ExecStart=<full path to program [with parameters and option]> | |
# Run as specific user | |
#User=<user> | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
goes to
/etc/systemd/system/
enable with
systemctl enable foo.service