Skip to content

Instantly share code, notes, and snippets.

@vmorris
Created August 21, 2019 12:18
Show Gist options
  • Save vmorris/a9cb0cbf3c910eb2acc4d3ac805553c8 to your computer and use it in GitHub Desktop.
Save vmorris/a9cb0cbf3c910eb2acc4d3ac805553c8 to your computer and use it in GitHub Desktop.
systemd service template
[root@ThinkPad-W541 system]# systemctl start test@test1-2-3.service
[root@ThinkPad-W541 system]# journalctl -u test@test1-2-3.service
-- Logs begin at Mon 2019-08-19 03:59:36 EDT, end at Wed 2019-08-21 08:18:07 EDT. --
Aug 21 08:18:07 ThinkPad-W541 systemd[1]: Started Buggy test1/2/3.
Aug 21 08:18:07 ThinkPad-W541 echo[19928]: test1/2/3
[Unit]
Description=Buggy %I
[Service]
ExecStart=/bin/echo %I
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment