Spotter-VM/solr/lib/systemd/system/solr.service

12 lines
274 B
SYSTEMD
Raw Normal View History

2017-12-13 10:18:38 +01:00
[Unit]
Description=Solr Docker container
2017-12-13 10:18:38 +01:00
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/docker run --rm --tmpfs /tmp --name solr -v /srv/solr/data:/srv/solr/server/solr solr
2017-12-13 10:18:38 +01:00
ExecStop=/usr/bin/docker stop solr
[Install]
WantedBy=multi-user.target