I have a command in bash script that runs my custom application:
./my_app --config ./cfg >> my_app.log 2>>my_app.err
And I want to wrap this into a systemd service. I've done this so far:
[Unit]
Description=my_app
After=syslog.target
[Service]
ExecStart=/home/user123/my_app_dir/my_app --config cfg
Restart=on-abort
WorkingDirectory=/home/user123/my_app_dir
SyslogIdentifier=my_app
User=my_user
[Install]
WantedBy=multi-user.target
How do I have to convert those 2 parts that redirect output into the logs?