systemd service

main
acetone 2022-04-24 12:32:22 -04:00 committed by GitHub
parent f964869dc7
commit d4394742f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# Copy it to /etc/system/systemd/ and make executable (chmod +x)
[Unit]
Description=Zero storage captcha service
After=network.target
[Service]
Type=idle
User=nobody
# Change path and parameters to actual:
ExecStart=/path/to/zsc-daemon -a 127.0.0.1 -p 7696 -t 4
# To run on non-GUI system:
Environment=QT_QPA_PLATFORM=offscreen
Restart=on-failure
[Install]
WantedBy=multi-user.target