File rest-server-0.9.7_fix_service_file.patch of Package rest-server
Index: rest-server-0.10.0/examples/systemd/rest-server.service =================================================================== --- rest-server-0.10.0.orig/examples/systemd/rest-server.service +++ rest-server-0.10.0/examples/systemd/rest-server.service @@ -1,13 +1,16 @@ [Unit] -Description=Rest Server +Description=Rest Server is a high performance HTTP server that implements restic's REST backend API After=syslog.target After=network.target [Service] Type=simple -User=www-data -Group=www-data -ExecStart=/usr/local/bin/rest-server --path /tmp/restic +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 HOMEDIR --log LOGDIR/access.log $REST_SERVER_OPTIONS Restart=always RestartSec=5