I am trying to redirect logs to a file using systemd. I have tried adding below statements to the service.
StandardOutput=file:/tmp/test1.txt
StandardError=file:/tmp/test2.txt
But those files are not generating. Is there anything I am missing here? Is there any kernel flags which has to be enabled for this?
I am using systemd version 216 in my device.