Created
March 30, 2021 10:16
-
-
Save siddolo/8a83a720f6e8e1ffa889ae5c72d017b6 to your computer and use it in GitHub Desktop.
Systemd start script after docker service startup
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
#/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