Don't redirect the output of backend to files, let it go to syslogs.
This way you can check the logs via journalctl -e -u backend.
commit3d4e72aa068e029fa92e1a07fa92fdb984f00087
authorRobert Klotzner <robert.klotzner@gmx.at>
dateSun 16 Jun 2019, 11:31 (7 years ago)
parent86a9584
default.nix+1−1
@@ -210,7 +210,7 @@ in rec {
210210 script = ''
211211 ln -sft . '${exe}'/*
212212 mkdir -p log
213− exec ./backend ${backendArgs} >>backend.out 2>>backend.err </dev/null
213+ exec ./backend ${backendArgs} </dev/null
214214 '';
215215 serviceConfig = {
216216 User = user;