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 09:11:28 +02:00
|
|
|
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
|