File rest-server-0.12.0_fix_service_file.patch of Package rest-server
diff -up rest-server/examples/systemd/rest-server.service.fix_service rest-server/examples/systemd/rest-server.service
--- rest-server/examples/systemd/rest-server.service.fix_service 2023-06-18 22:09:51.440175975 +0200
+++ rest-server/examples/systemd/rest-server.service 2023-06-18 22:12:06.519606920 +0200
@@ -9,9 +9,12 @@ After=network.target
[Service]
Type=simple
# You may prefer to use a different user or group on your system.
-User=www-data
-Group=www-data
-ExecStart=/usr/local/bin/rest-server --path /path/to/backups
+User=rest-server
+Group=rest-server
+# --listen string listen address (default ":8000")
+# --tls turn on TLS support
+EnvironmentFile=/etc/sysconfig/rest-server
+ExecStart=/usr/sbin/rest-server --path "${REST_SERVER_HOMEDIR}" --log "${REST_SERVER_LOGDIR}/access.log" $REST_SERVER_OPTIONS
Restart=always
RestartSec=5