service: change default stdout/stderr to syslog

This commit is contained in:
Lennart Poettering 2011-08-30 22:57:55 +02:00
parent 346bce1f4c
commit de6c78f879
5 changed files with 21 additions and 10 deletions

5
TODO
View File

@ -23,7 +23,7 @@ Features:
* service restart retry configuration * service restart retry configuration
* tmpfiles: apply "x" on "D" too (see patch from William Douglas * tmpfiles: apply "x" on "D" too (see patch from William Douglas)
* tmpfiles: support generation of char/block devices, symlinks and one-line files (think sysfs) * tmpfiles: support generation of char/block devices, symlinks and one-line files (think sysfs)
* Introduce ControlGroupPersistant=yes to set +t on the tasks file when creating the cgroup * Introduce ControlGroupPersistant=yes to set +t on the tasks file when creating the cgroup
@ -39,9 +39,6 @@ Features:
* allow Type=simple with PIDFile= * allow Type=simple with PIDFile=
https://bugzilla.redhat.com/show_bug.cgi?id=723942 https://bugzilla.redhat.com/show_bug.cgi?id=723942
* file bugs against sysklogd, syslog-ng because of StandardOuput=null
* turn default stdout/stderr to syslog (after rsyslog got updated)
* move PAM code into its own binary * move PAM code into its own binary
* warn if the user stops a service but not its associated socket * warn if the user stops a service but not its associated socket

View File

@ -396,8 +396,13 @@
socket activation, semantics are socket activation, semantics are
similar to the respective option of similar to the respective option of
<varname>StandardInput=</varname>. <varname>StandardInput=</varname>.
This setting defaults to This setting defaults to the value set
<option>inherit</option>.</para></listitem> with
<option>DefaultStandardOutput=</option>
in
<citerefentry><refentrytitle>systemd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
which defaults to
<option>syslog</option>.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><varname>StandardError=</varname></term> <term><varname>StandardError=</varname></term>
@ -411,7 +416,11 @@
<option>inherit</option> the file <option>inherit</option> the file
descriptor used for standard output is descriptor used for standard output is
duplicated for standard error. This duplicated for standard error. This
setting defaults to setting defaults to the value set with
<option>DefaultStandardError=</option>
in
<citerefentry><refentrytitle>systemd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
which defaults to
<option>inherit</option>.</para></listitem> <option>inherit</option>.</para></listitem>
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>

View File

@ -270,7 +270,12 @@
<option>syslog+console</option>, <option>syslog+console</option>,
<option>kmsg</option>, <option>kmsg</option>,
<option>kmsg+console</option>. If the <option>kmsg+console</option>. If the
argument is omitted it defaults to argument is omitted
<option>--default-standard-output=</option>
defaults to <option>syslog</option>
and
<option>--default-standard-error=</option>
to
<option>inherit</option>.</para></listitem> <option>inherit</option>.</para></listitem>
</varlistentry> </varlistentry>
</variablelist> </variablelist>

View File

@ -76,7 +76,7 @@ static bool arg_mount_auto = true;
static bool arg_swap_auto = true; static bool arg_swap_auto = true;
static char **arg_default_controllers = NULL; static char **arg_default_controllers = NULL;
static char ***arg_join_controllers = NULL; static char ***arg_join_controllers = NULL;
static ExecOutput arg_default_std_output = EXEC_OUTPUT_INHERIT; static ExecOutput arg_default_std_output = EXEC_OUTPUT_SYSLOG;
static ExecOutput arg_default_std_error = EXEC_OUTPUT_INHERIT; static ExecOutput arg_default_std_error = EXEC_OUTPUT_INHERIT;
static FILE* serialization = NULL; static FILE* serialization = NULL;

View File

@ -21,6 +21,6 @@
#MountAuto=yes #MountAuto=yes
#SwapAuto=yes #SwapAuto=yes
#DefaultControllers=cpu #DefaultControllers=cpu
#DefaultStandardOutput=inherit #DefaultStandardOutput=syslog
#DefaultStandardError=inherit #DefaultStandardError=inherit
#JoinControllers=cpu,cpuacct #JoinControllers=cpu,cpuacct