because of the way my hoster does things I have to use a system for services.
This service has a run file which it executes and pipes into a second run file. But I use a (given) python package that logs to stderr instead of stdout and I can't get it to do what I want.
So I have a run script for my service:
#!/bin/sh cd ~/webapp/PriceList exec python3.4 ~/webapp/PriceList/src/main.py
which is piped into the run of the logging system:
#!/bin/sh exec multilog t ./main
But the pipe doesn't connect stderr (as expected). So after googling I appended a redirection to my run:
#!/bin/sh cd ~/webapp/PriceList exec python3.4 ~/webapp/PriceList/src/main.py 2>&1
But this does not solve my problem: My own outputs (to stdout using pythons print) are logged as expected. The stderr output is not logged.
If I redirect my modified runscript into two files, it shows that there is no redirection (stderr is still on stderr). How do I have to modify my redirection to work?