I have a systemd service:
[Unit]
Description=My application
[Service]
ExecStart=/bin/java myapp.jar
Type=simple
User=photo
There is an option: StandardOutput= but I don't understand how to use it to write to a file. https://www.freedesktop.org/software/systemd/man/systemd.exec.html
I was expecting to put a filepath somehere but the documentation talks about sockets and file descriptors. seems it needs more configuration than just that keyword.
Where to put the filepath ? I can't find any examples of that use
Thanks
StandardOutput=file:/path/to/here.log
option. – peterh Feb 06 '19 at 10:27