]> git.tuebingen.mpg.de Git - paraslash.git/commit
Allow to start server and audiod as daemon with no logfile.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 7 Oct 2014 14:02:07 +0000 (14:02 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 30 Apr 2015 15:54:51 +0000 (17:54 +0200)
commitdb212616a42fb6d33385f79cfc9b8cca9721a8b9
treef3deb6432cd2504a4bacaa26b39761916b6c4eba
parent4593ad8509e51777db04f0845bde49f12dfaedea
Allow to start server and audiod as daemon with no logfile.

Currently para_audiod and para_server won't start in the background
if no logfile is specified, so "-dL /dev/null" must be given to force
this. This is a bit tedious to type, so this commit makes "/dev/null"
the default.

To achive this, we can simply remove the gengetopt "dependon" statement
from daemon.m4. This works because if no logfile was given, log output
is written to stderr, which is redirected to /dev/null in case -d
was also given. We need to open /dev/null in read-write mode though,
but no other changes are required.
NEWS
daemon.c
m4/gengetopt/daemon.m4