Index: syslog.conf |
diff --git a/syslog.conf b/syslog.conf |
index 0d9b65a796456c7e97f61ec48241e337d3cc3080..275a7e9141c293df0b61fac0992ae812a6304d21 100644 |
--- a/syslog.conf |
+++ b/syslog.conf |
@@ -1,4 +1,4 @@ |
-# Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
+# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
# |
@@ -10,16 +10,18 @@ start on runlevel 2 |
stop on starting halt or starting reboot |
pre-start script |
+ SYSLOG_RUN="/var/run/rsyslog" |
+ KMSG_PIPE="${SYSLOG_RUN}/kmsg" |
-SYSLOG_RUN="/var/run/rsyslog" |
-KMSG_PIPE="${SYSLOG_RUN}/kmsg" |
- |
-mkdir -p "$SYSLOG_RUN" |
-test -p "$KMSG_PIPE" || mkfifo -m 600 "$KMSG_PIPE" |
-chown -R syslog:syslog "$SYSLOG_RUN" |
- |
+ if [ ! -d "${SYSLOG_RUN}" ]; then |
+ install --owner=syslog --group=syslog -d "${SYSLOG_RUN}" |
+ fi |
+ if [ ! -p "${KMSG_PIPE}" ]; then |
+ mkfifo -m 600 "${KMSG_PIPE}" |
+ chown syslog:syslog "${KMSG_PIPE}" |
+ fi |
end script |
respawn |
expect fork |
-exec /usr/sbin/rsyslogd -c4 -f /etc/rsyslog.chromeos |
+exec rsyslogd -c4 -f /etc/rsyslog.chromeos |