Skip to content

Instantly share code, notes, and snippets.

@ramcq
Created February 12, 2020 14:37
Show Gist options
  • Save ramcq/31741714ff17f00da6f6bd82e3345a86 to your computer and use it in GitHub Desktop.
Save ramcq/31741714ff17f00da6f6bd82e3345a86 to your computer and use it in GitHub Desktop.
[Unit]
Description=ZeroTier One Container
[Service]
Restart=on-failure
ExecStartPre=/usr/bin/rm -f /var/run/containers/storage/overlay-containers/adcb78cc8fddb7587ad694e5d8a6aa434ab946fce4aeb6a57414f82ea2aa5935/userdata/conmon.pid
ExecStart=/usr/bin/podman start adcb78cc8fddb7587ad694e5d8a6aa434ab946fce4aeb6a57414f82ea2aa5935
ExecStop=/usr/bin/podman stop -t 10 adcb78cc8fddb7587ad694e5d8a6aa434ab946fce4aeb6a57414f82ea2aa5935
KillMode=none
Type=forking
PIDFile=/var/run/containers/storage/overlay-containers/adcb78cc8fddb7587ad694e5d8a6aa434ab946fce4aeb6a57414f82ea2aa5935/userdata/conmon.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment