chiark / gitweb /
service: change default stdout/stderr to syslog
authorLennart Poettering <lennart@poettering.net>
Tue, 30 Aug 2011 20:57:55 +0000 (22:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 30 Aug 2011 20:57:58 +0000 (22:57 +0200)
TODO
man/systemd.exec.xml
man/systemd.xml
src/main.c
src/system.conf

diff --git a/TODO b/TODO
index 6d562eabb5267ed0dfa95fac102cd9b2f7532371..677e1c9f4f09e18699bf5395642f64af425daf6c 100644 (file)
--- a/TODO
+++ b/TODO
@@ -23,7 +23,7 @@ Features:
 
 * 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)
 
 * Introduce ControlGroupPersistant=yes to set +t on the tasks file when creating the cgroup
@@ -39,9 +39,6 @@ Features:
 * allow Type=simple with PIDFile=
   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
 
 * warn if the user stops a service but not its associated socket
index c7da8e312e674e2c46211a350a7026aa6a294267..609484b3a3aaa750eba935603a0917f596059b9f 100644 (file)
                                 socket activation, semantics are
                                 similar to the respective option of
                                 <varname>StandardInput=</varname>.
-                                This setting defaults to
-                                <option>inherit</option>.</para></listitem>
+                                This setting defaults to the value set
+                                with
+                                <option>DefaultStandardOutput=</option>
+                                in
+                                <citerefentry><refentrytitle>systemd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
+                                which defaults to
+                                <option>syslog</option>.</para></listitem>
                         </varlistentry>
                         <varlistentry>
                                 <term><varname>StandardError=</varname></term>
                                 <option>inherit</option> the file
                                 descriptor used for standard output is
                                 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>
                         </varlistentry>
                         <varlistentry>
index d66b23027a512dc65409f5b268442462fef519e3..a11c96e7f1a13c45ffb22f573da802699c7e5463 100644 (file)
                                 <option>syslog+console</option>,
                                 <option>kmsg</option>,
                                 <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>
                         </varlistentry>
                 </variablelist>
index 94401a5c04a161a2600adea41109b5e3954b4bcd..7af060aa4038091755403ebe9b1275a7acd35c55 100644 (file)
@@ -76,7 +76,7 @@ static bool arg_mount_auto = true;
 static bool arg_swap_auto = true;
 static char **arg_default_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 FILE* serialization = NULL;
index ad2cd7f3b45a912a599f913a3c686888625af1ef..4e050579d5bc11d910abd527dc1fd6de36884135 100644 (file)
@@ -21,6 +21,6 @@
 #MountAuto=yes
 #SwapAuto=yes
 #DefaultControllers=cpu
-#DefaultStandardOutput=inherit
+#DefaultStandardOutput=syslog
 #DefaultStandardError=inherit
 #JoinControllers=cpu,cpuacct