screenshot-service/screenshot-service.service

17 lines
366 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
ExecStartPre=/usr/bin/bash -c 'docker rm -f $(docker ps | grep headless-fox | awk \'{print $1}\')'
2022-05-28 12:54:53 +02:00
ExecStart=node /root/ss
Restart=on-failure
RestartSec=1s
[Install]
WantedBy=multi-user.target