2019-07-11 15:12:54 +00:00
|
|
|
[Unit]
|
2019-07-09 16:05:05 +00:00
|
|
|
Description=searx service
|
|
|
|
Requires=docker.service
|
|
|
|
After=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Restart=always
|
|
|
|
|
2019-07-11 15:12:54 +00:00
|
|
|
Environment=SEARX_DIR=/usr/local/searx-docker
|
2019-07-09 16:05:05 +00:00
|
|
|
Environment=SEARX_DOCKERCOMPOSEFILE=docker-compose.yaml
|
|
|
|
|
2019-07-11 15:12:54 +00:00
|
|
|
ExecStart=/bin/sh -c "${SEARX_DIR}/start.sh"
|
|
|
|
ExecStop=/bin/sh -c "${SEARX_DIR}/stop.sh"
|
2019-07-09 16:05:05 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|