mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
Support running on demand systemd socket activation
This commit is contained in:
@@ -3,6 +3,9 @@ Description=Rest Server
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
# if you want to use socket activation, make sure to require the socket here
|
||||
#Requires=rest-server.socket
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# You may prefer to use a different user or group on your system.
|
||||
|
||||
5
examples/systemd/rest-server.socket
Normal file
5
examples/systemd/rest-server.socket
Normal file
@@ -0,0 +1,5 @@
|
||||
[Socket]
|
||||
ListenStream = 8080
|
||||
|
||||
[Install]
|
||||
WantedBy = sockets.target
|
||||
Reference in New Issue
Block a user