screenshot-service/screenshot-service.service

17 lines
375 B
SYSTEMD
Raw Normal View History

2022-05-28 12:54:53 +02:00
[Unit]
Description=Service that takes screenshots for users of the Rentgen addon
After=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/root/ss
2022-07-08 10:53:25 +02:00
ExecStartPre=/usr/bin/bash -c "docker ps | grep headless-fox | sed 's/ .*//' | xargs -I {} docker rm -f {}"
2022-05-28 12:54:53 +02:00
ExecStart=node /root/ss
Restart=on-failure
RestartSec=1s
[Install]
WantedBy=multi-user.target