Support running on demand systemd socket activation

This commit is contained in:
Alexander Neumann
2021-08-09 16:06:35 +02:00
parent 32784a3072
commit f90205eefe
8 changed files with 92 additions and 9 deletions

View File

@@ -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.

View File

@@ -0,0 +1,5 @@
[Socket]
ListenStream = 8080
[Install]
WantedBy = sockets.target