screenshot-service/screenshot-service.service

17 lines
375 B
Desktop File

[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
ExecStartPre=/usr/bin/bash -c 'docker ps | grep headless-fox | sed 's/ .*//' | xargs -I {} docker rm -f {}'
ExecStart=node /root/ss
Restart=on-failure
RestartSec=1s
[Install]
WantedBy=multi-user.target