Systemd services depend on their sockets

This commit is contained in:
Reynir Björnsson 2020-11-11 14:31:26 +01:00
parent 99a992b3c4
commit b2b9ddcdef
4 changed files with 4 additions and 2 deletions

View file

@ -3,6 +3,7 @@
# to create an override configuration:
# systemctl edit albatross_console.service
Description=Albatross console daemon (albatross_console)
Requires=albatross_console.socket
After=syslog.target
[Service]

View file

@ -1,6 +1,6 @@
[Unit]
Description=Albatross VMM daemon (albatrossd)
Requires=albatross_console.socket albatross_log.socket
Requires=albatross_console.socket albatross_log.socket albatross_daemon.socket
After=syslog.target albatross_console.service albatross_log.service
[Service]

View file

@ -4,7 +4,7 @@
# systemctl edit albatross_log.service
Description=Albatross log daemon (albatross_log)
After=syslog.target albatross_console.service
Requires=albatross_console.socket
Requires=albatross_console.socket albatross_log.socket
AssertPathExists=/var/lib/albatross/albatross.log
[Service]

View file

@ -3,6 +3,7 @@
# to create an override configuration:
# systemctl edit albatross_stat.service
Description=Albatross stat daemon (albatross_stat)
Requires=albatross_stat.socket
After=syslog.target
[Service]