18728a7601
- console creates the run directories (albatross albatross/fifo albatross/util) -> log depends on console - albatross/fifo needs special permission (albatross_daemon creates fifo there, albatross_console needs to read them) - use /var/lib/albatross/albatross.log for the log file - only require root in albatross_daemon, use user albatross in albatross_console and albatross_log - defer albatross_stat for now
20 lines
640 B
Desktop File
20 lines
640 B
Desktop File
[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)
|
|
After=syslog.target albatross_console.service
|
|
Requires=albatross_console.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=albatross
|
|
ExecStart=/usr/local/sbin/albatross-log --logfile="/var/lib/albatross/albatross.log" --tmpdir="%t/albatross/" -vv
|
|
#RuntimeDirectory=albatross albatross/util
|
|
#RuntimeDirectoryPreserve=yes # avoid albatross.log being cleaned up
|
|
PIDFile=%t/albatross/log.pid
|
|
RestrictAddressFamilies=AF_UNIX
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|