Skip to content

Instantly share code, notes, and snippets.

@siddolo
Created March 30, 2021 10:16
Show Gist options
  • Save siddolo/8a83a720f6e8e1ffa889ae5c72d017b6 to your computer and use it in GitHub Desktop.
Save siddolo/8a83a720f6e8e1ffa889ae5c72d017b6 to your computer and use it in GitHub Desktop.
Systemd start script after docker service startup
#/etc/systemd/system/myservice.service
[Unit]
Description=My Scipt Description
After=docker.service
BindsTo=docker.service
#ReloadPropagatedFrom=docker.service
[Service]
ExecStart=/path/to/script.sh
#ExecReload=/path/to/script.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment