AssertPathExists belongs under [Unit]

And not [Service].
This commit is contained in:
Reynir Björnsson 2020-11-11 14:18:07 +01:00
parent f79ed78a2b
commit 99a992b3c4

View file

@ -5,11 +5,11 @@
Description=Albatross log daemon (albatross_log)
After=syslog.target albatross_console.service
Requires=albatross_console.socket
AssertPathExists=/var/lib/albatross/albatross.log
[Service]
Type=simple
User=albatross
AssertPathExists=/var/lib/albatross/albatross.log
ExecStart=/usr/local/sbin/albatross-log --systemd-socket-activation --logfile="/var/lib/albatross/albatross.log" --tmpdir="%t/albatross/" -vv
RuntimeDirectory=albatross albatross/util
#RuntimeDirectoryPreserve=yes # avoid albatross.log being cleaned up