There is a configuration option named LOG_FILE_PATH
to which logs can be directed to. Even after providing a value to this option, I still see a console output. I know, I can redirect to /dev/null
; is there a better way. How do I suppress this and route all logs to the option?
Ultimately, I want to use a systemd
file as this; hence, the question.
[Unit]
Description=Stellar Core
[Service]
ExecStartPre=/usr/local/bin/stellar-core --conf /home/champ/stellar-conf/testnet.cfg --new --forcescp 1>/dev/null 2>/dev/null
ExecStart=/usr/local/bin/stellar-core --conf /home/champ/stellar-conf/testnet.cfg 1>/dev/null 2>/dev/null