Answer the question
In order to leave comments, you need to log in
How to disable logging by the service to the messages log?
Good day! There is a service concocted from a sh file that starts a chain of actions, including keeping its own log. The problem is that if you start the service via systemctl start, then the entire log is added to the Messages file and no own logs are kept in the specified folder. how can this be corrected?
the service is set up like this
[Unit]
Description=AccountServer
[Service]
Type=simple
ExecStart=/home/server/server_bin/accountServer/startAccountServer.sh
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
Answer the question
In order to leave comments, you need to log in
Redirect the logs by the filter to the rsyslog file you need.
Or understand why the service does not keep logs in a separate file.
IMHO, strange.
And what is written in home/server/server_bin/accountServer/startAccountServer.sh, how do we write to the log file?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question