How to redirect all stdout/stderr to syslog?
An easy way to redirect all stdout/stderr of a given process to syslog is to do the following in a bash script:
Please note this only works with bash as this is a bash extension to the POSIX standard.
If you want only stderr:
So if you have an application that runs in the foreground (and a properly written service should not daemonize in my opinion), you can have the following shell script for a quick solution: