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

12 lines
255 B
SYSTEMD
Raw Normal View History

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