cursed-archivebox-api/cursed-archivebox-api.service

15 lines
384 B
SYSTEMD
Raw Normal View History

2023-04-26 16:46:36 +03:00
[Unit]
Description=Cursed API for ArchiveBox
After=syslog.target
After=network.target
[Service]
Type=simple
Environment=ARCHIVEBOX_BIN="docker compose -f /opt/archivebox/docker-compose.yml run archivebox"
WorkingDirectory=/opt/cursed_archivebox_api
ExecStart=/opt/cursed_archivebox_api/env/bin/python cursed_archivebox_api.py
Restart=on-failure
[Install]
WantedBy=multi-user.target