2019-11-21 12:29:22 +00:00
|
|
|
[Unit]
|
|
|
|
# To configure this service, please use the following command
|
|
|
|
# to create an override configuration:
|
|
|
|
# systemctl edit albatross_log.service
|
|
|
|
Description=Albatross log daemon (albatross_log)
|
2020-04-03 14:34:30 +00:00
|
|
|
After=syslog.target albatross_console.service
|
|
|
|
Requires=albatross_console.service
|
|
|
|
|
2019-11-21 12:29:22 +00:00
|
|
|
[Service]
|
|
|
|
Type=simple
|
2020-04-03 14:34:30 +00:00
|
|
|
User=albatross
|
2020-11-10 10:02:17 +00:00
|
|
|
AssertPathExists=/var/lib/albatross/albatross.log
|
2020-04-03 14:34:30 +00:00
|
|
|
ExecStart=/usr/local/sbin/albatross-log --logfile="/var/lib/albatross/albatross.log" --tmpdir="%t/albatross/" -vv
|
2020-11-10 10:02:17 +00:00
|
|
|
RuntimeDirectory=albatross albatross/util
|
2020-04-03 14:34:30 +00:00
|
|
|
#RuntimeDirectoryPreserve=yes # avoid albatross.log being cleaned up
|
|
|
|
PIDFile=%t/albatross/log.pid
|
|
|
|
RestrictAddressFamilies=AF_UNIX
|
2019-11-21 12:29:22 +00:00
|
|
|
|
|
|
|
[Install]
|
2020-11-11 10:41:07 +00:00
|
|
|
Also=albatross_log.socket
|
2019-11-21 12:29:22 +00:00
|
|
|
WantedBy=multi-user.target
|