LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 10-20-2009, 03:57 PM   #1
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
How to restart udevd without rebooting


Hello together,

I've configured my scanner for scanning over the network (as I've described in this thread: http://www.linuxquestions.org/questi...etwork-761212/).
Since I had to fiddle around to find the adequate udev-rules I had to restart udevd several times. But I did not know if and how it's possible to restart the udev daemon, so I rebooted my computer several times. Now my question: is it possible to restart udevd without rebooting the system?

Markus
 
Old 10-20-2009, 11:03 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
The very first hit for "gentoo restart service" explains it pretty clearly.

http://www.gentoo.org/doc/en/handboo...?part=2&chap=4

Just run "/etc/init.d/servicename restart".

I'm not sure if that will force udev to re-run it's rules though. You may have to try using the "trigger" option in udevadm to do that.
 
Old 10-21-2009, 01:53 AM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Original Poster
Rep: Reputation: Disabled
Hello David the H.

thanks for the answer, but this won't work with Gentoo.

Sorry that I did not explain what I've tried before posting.
Code:
NoteBook ~ # /etc/init.d/udev restart
 * The udev init-script is written for baselayout-2!
 * Please do not use it with baselayout-1!.
I ended up to find out what a baselayout is. But since I'm pretty new to Gentoo I've not understood the explanation.
It maybe that restarting udev on a running system is as dangerous that rebooting is the better (saver) choice and I started this thread to get an answer about that.

Markus

Last edited by markush; 10-21-2009 at 06:29 AM. Reason: typo
 
Old 10-21-2009, 02:37 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Baselayout is a package that installs the basic init scripts and some config files. A bit part of the init process of a default Gentoo system goes there. The udev script in there is for baseleyout-2.x and you seem to have 1.x installed.

With either version, "devadm control --reload-rules" should instruct the daemon to read the rules again.
 
Old 10-21-2009, 02:42 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Original Poster
Rep: Reputation: Disabled
Hello i92guboj,

Quote:
Originally Posted by i92guboj View Post
With either version, "devadm control --reload-rules" should instruct the daemon to read the rules again.
Thanks very much for the answer, I think this is exactly what I've been looking for.

Markus
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
After "adduser user scanner", how to restart the permissions without rebooting? frenchn00b Linux - General 3 12-31-2008 02:58 AM
How do I restart X without rebooting? Seventh Linux - Newbie 2 02-23-2006 01:18 PM
udevd problem Krugger SUSE / openSUSE 1 11-03-2005 09:32 AM
udevd not running don_pingu Slackware 9 07-19-2005 04:03 PM
A way to stop/restart USB support without rebooting? ewto Linux - Newbie 2 10-15-2003 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration