From d4394742f892947af44cb3542487ad2d537ad1e2 Mon Sep 17 00:00:00 2001 From: acetone <63557806+freeacetone@users.noreply.github.com> Date: Sun, 24 Apr 2022 12:32:22 -0400 Subject: [PATCH] systemd service --- systemd/zsc-daemon.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 systemd/zsc-daemon.service diff --git a/systemd/zsc-daemon.service b/systemd/zsc-daemon.service new file mode 100644 index 0000000..f14eb31 --- /dev/null +++ b/systemd/zsc-daemon.service @@ -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