Last active
November 15, 2015 18:52
-
-
Save ChimeraCoder/853c03c1db813bef18c5 to your computer and use it in GitHub Desktop.
Sample systemd service file
This file contains hidden or 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
[Unit] | |
Description=OfflineimapGmail | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
ExecStartPre=-/usr/bin/docker kill offlineimapgmail | |
ExecStartPre=-/usr/bin/docker rm offlineimapgmail | |
ExecStartPre=/usr/bin/docker pull chimeracoder/offlineimap-gmail | |
ExecStart=/usr/bin/docker run --name offlineimapgmail chimeracoder/offlineimap-gmail | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment