Last active
April 26, 2017 10:42
-
-
Save mapcentia/b321627726add10164c25c39da638300 to your computer and use it in GitHub Desktop.
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
Description=Postgis | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
ExecStart=/usr/bin/docker start -a postgis | |
ExecStop=/usr/bin/docker stop postgis | |
Restart=always | |
RestartSec=3 | |
StandardOutput=syslog | |
StandardError=syslog | |
SyslogIdentifier=postgis | |
[Install] | |
WantedBy=multi-user.target | |
[Unit] | |
Description=Elasticsearch | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
ExecStart=/usr/bin/docker start -a elasticsearch | |
ExecStop=/usr/bin/docker stop elasticsearch | |
Restart=always | |
RestartSec=10 | |
StandardOutput=syslog | |
StandardError=syslog | |
SyslogIdentifier=elasticsearch | |
[Install] | |
WantedBy=multi-user.target | |
** | |
[Unit] | |
Description=GC2Core | |
Requires=docker.service | |
After=docker.service postgis.service elasticsearch.service | |
Before=mapcache.service | |
[Service] | |
ExecStart=/usr/bin/docker start -a gc2core | |
ExecStop=/usr/bin/docker stop gc2core | |
Restart=always | |
RestartSec=3 | |
StandardOutput=syslog | |
StandardError=syslog | |
SyslogIdentifier=gc2core | |
[Install] | |
WantedBy=multi-user.target | |
** | |
[Unit] | |
Description=Mapcache | |
Requires=docker.service gc2core.service | |
[Service] | |
ExecStart=/usr/bin/docker start -a mapcache | |
ExecStop=/usr/bin/docker stop mapcache | |
Restart=always | |
RestartSec=3 | |
StandardOutput=syslog | |
StandardError=syslog | |
SyslogIdentifier=mapcache | |
[Install] | |
WantedBy=gc2core.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment