Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: syslog.conf

Issue 6720036: Slight cleanup of syslog.conf. (Closed) Base URL: ssh://gitrw.chromium.org:9222/init.git@master
Patch Set: jrbarnette review feedback. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698