Reynir Björnsson
33f7b6bcee
* Use systemd socket activation * Pass a new command line argument --systemd-socket-activation to the daemons if running on Linux * Install .socket files * Systemd services depend on their sockets * Implement sd_listen_fds in OCaml * Set FD_CLOEXEC in sd_listen_fds * README: add comment about socket paths * Linux systemd scripts: Rename albatross_stat -> albatross_stats
13 lines
206 B
SYSTEMD
13 lines
206 B
SYSTEMD
[Unit]
|
|
Description=Albatross stats socket
|
|
PartOf=albatross_stats.service
|
|
|
|
[Socket]
|
|
ListenStream=%t/albatross/util/stat.sock
|
|
SocketUser=albatross
|
|
SocketMode=0600
|
|
Accept=no
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|