public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/udev-gentoo-scripts:master commit in: init.d/, conf.d/
Date: Wed,  3 Aug 2011 20:18:21 +0000 (UTC)	[thread overview]
Message-ID: <c322c9fb2fa5baf5706dfd771a41b6868b0e047a.WilliamH@gentoo> (raw)

commit:     c322c9fb2fa5baf5706dfd771a41b6868b0e047a
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Wed Aug  3 20:17:44 2011 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Wed Aug  3 20:17:44 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/udev-gentoo-scripts.git;a=commit;h=c322c9fb

Revert "Move debug and event logs"

This reverts commit 9177f931b926e4b1377b51f19cbbae94a421fc03.

This can't happen because root is read only when udev is started.

---
 conf.d/udev |    4 ++--
 init.d/udev |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/conf.d/udev b/conf.d/udev
index f41ff01..da113a8 100644
--- a/conf.d/udev
+++ b/conf.d/udev
@@ -38,12 +38,12 @@ persistent_cd_disable="no"
 # udevd --help for possible values
 #udev_opts=""
 
-# Run udevd --debug and write output to /tmp/udev.log
+# Run udevd --debug and write output to $RUNDIR/udev.log
 # Should not be kept on as it fills diskspace slowly
 #udev_debug="YES"
 
 # Run udevadmin monitor to get a log of all events
-# in /tmp/udevmonitor.log
+# in $RUNDIR/udevmonitor.log
 #udev_monitor="YES"
 
 # Keep udevmonitor running after populating /dev.

diff --git a/init.d/udev b/init.d/udev
index a565ac0..9e6e2e7 100644
--- a/init.d/udev
+++ b/init.d/udev
@@ -103,7 +103,7 @@ start_udevd()
 
 	ebegin "Starting udevd"
 	if yesno "${udev_debug}"; then
-		/sbin/udevd --daemon ${opts} --debug 2>/tmp/udev.log
+		/sbin/udevd --daemon ${opts} --debug 2>"$(get_rundir)"/udev.log
 	else
 		start-stop-daemon --start --exec /sbin/udevd -- --daemon ${opts}
 	fi
@@ -146,10 +146,10 @@ start_udevmonitor()
 {
 	yesno "${udev_monitor}" || return 0
 
-	udevmonitor_log=/tmp/udevmonitor.log
+	udevmonitor_log="$(get_rundir)/udevmonitor.log"
 	udevmonitor_pid="$(get_rundir)/udevmonitor.pid"
 
-	einfo "udev: Running udevadm monitor ${udev_monitor_opts} to log all events"
+	einfo "udev: Running udevadm monitor ${udev_monitor_opts} to get a log of all events"
 	start-stop-daemon --start --stdout "${udevmonitor_log}" \
 		--make-pidfile --pidfile "${udevmonitor_pid}" \
 		--background --exec /sbin/udevadm -- monitor ${udev_monitor_opts}



             reply	other threads:[~2011-08-03 20:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-03 20:18 William Hubbs [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-11-25 20:58 [gentoo-commits] proj/udev-gentoo-scripts:master commit in: init.d/, conf.d/ William Hubbs
2012-07-31 22:54 William Hubbs
2012-07-31 17:35 William Hubbs
2012-07-16 15:30 William Hubbs
2012-06-30 23:47 William Hubbs
2011-08-03 18:59 William Hubbs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c322c9fb2fa5baf5706dfd771a41b6868b0e047a.WilliamH@gentoo \
    --to=williamh@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox