Instantly share code, notes, and snippets.

Embed
What would you like to do?
Systemd oneshot example service
[Unit]
Description=My service
[Service]
Type=oneshot
ExecStart=/path/to/my/script.sh
#RemainAfterExit=true
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment