Unix Technical Forum

One bug in /etc/rc.d/rc.6, and one omission.

This is a discussion on One bug in /etc/rc.d/rc.6, and one omission. within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi folks, In Slackware 12, there are references in /etc/rc.d/rc.6 to /bin/sleep. There is no sleep in /bin. Try ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 04:34 AM
plenty560@yahoo.com
 
Posts: n/a
Default One bug in /etc/rc.d/rc.6, and one omission.

Hi folks,

In Slackware 12, there are references in /etc/rc.d/rc.6
to /bin/sleep. There is no sleep in /bin. Try 'which sleep'.

Also, the poweroff command at the end needs to
have the -h flag to make sure it quietly shuts down
the hard drives. Without it, mine makes a cluck sound.

Enjoy..

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 04:34 AM
Dave Uhring
 
Posts: n/a
Default Re: One bug in /etc/rc.d/rc.6, and one omission.

On Sun, 02 Sep 2007 09:51:13 -0700, plenty560 wrote:

> In Slackware 12, there are references in /etc/rc.d/rc.6 to /bin/sleep.
> There is no sleep in /bin. Try 'which sleep'.


]$ which sleep
/bin/sleep

]$ grep sleep /var/log/packages/*
,,,
/var/log/packages/coreutils-6.9-i486-1:bin/sleep
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 04:34 AM
Martin Lefebvre
 
Posts: n/a
Default Re: One bug in /etc/rc.d/rc.6, and one omission.

plenty560@yahoo.com wrote:
> Hi folks,
>
> In Slackware 12, there are references in /etc/rc.d/rc.6
> to /bin/sleep. There is no sleep in /bin. Try 'which sleep'.
>


on mine, it returns /usr/bin/sleep, which is a symlink to /bin/sleep

> Also, the poweroff command at the end needs to
> have the -h flag to make sure it quietly shuts down
> the hard drives. Without it, mine makes a cluck sound.
>


make sure it doesn't lay eggs too... although this sounds like a safer
way...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 04:34 AM
Dan C
 
Posts: n/a
Default Re: One bug in /etc/rc.d/rc.6, and one omission.

On Sun, 02 Sep 2007 09:51:13 -0700, plenty560 wrote:

> In Slackware 12, there are references in /etc/rc.d/rc.6
> to /bin/sleep. There is no sleep in /bin. Try 'which sleep'.


LOL, n00b.
Try: ls -l /usr/bin/sleep

> Enjoy..


Bugger off.


--
"Bother!" said Pooh, as the prunes began to work.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 04:34 AM
Floyd L. Davidson
 
Posts: n/a
Default Re: One bug in /etc/rc.d/rc.6, and one omission.

Dan C <youmustbejoking@lan.invalid> wrote:
>On Sun, 02 Sep 2007 09:51:13 -0700, plenty560 wrote:
>
>> In Slackware 12, there are references in /etc/rc.d/rc.6
>> to /bin/sleep. There is no sleep in /bin. Try 'which sleep'.

>
>LOL, n00b.
>Try: ls -l /usr/bin/sleep


LOL, boob, that's still the *wrong* command!

Try "whereis sleep".

>> Enjoy..

>
>Bugger off.


Trolling for sex partners...

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-21-2008, 04:34 AM
Dan C
 
Posts: n/a
Default Re: One bug in /etc/rc.d/rc.6, and one omission.

On Sun, 02 Sep 2007 19:10:21 -0800, Floyd L. Davidson wrote:

>>> In Slackware 12, there are references in /etc/rc.d/rc.6
>>> to /bin/sleep. There is no sleep in /bin. Try 'which sleep'.


>>LOL, n00b.
>>Try: ls -l /usr/bin/sleep


> LOL, boob, that's still the *wrong* command!


There's nothing "wrong" about it, dumb fuck. It illustrates to the n00b
(and to you too apparently), that /usr/bin/sleep is a symlink to
/bin/sleep, and therefore the "error" in the rc.6 script is not an error
at all.

Is that too much for you to grasp? Read it again, slowly.

> Try "whereis sleep".


Yeah. What about it? Meaningless in this context.

> Trolling for sex partners...


You can do what you'd like, dimwit.


--
"Bother!" said Pooh, as he dropped another white rhino.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-21-2008, 04:34 AM
Miguel De Anda
 
Posts: n/a
Default Re: One bug in /etc/rc.d/rc.6, and one omission.

plenty560@yahoo.com wrote:

> Hi folks,
>
> In Slackware 12, there are references in /etc/rc.d/rc.6
> to /bin/sleep. There is no sleep in /bin. Try 'which sleep'.
>
> Also, the poweroff command at the end needs to
> have the -h flag to make sure it quietly shuts down
> the hard drives. Without it, mine makes a cluck sound.
>
> Enjoy..


Look at /etc/inittab for rc.6.

--
Posted via a free Usenet account from http://www.teranews.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-21-2008, 04:34 AM
Realto Margarino
 
Posts: n/a
Default Re: One bug in /etc/rc.d/rc.6, and one omission.

Floyd L. Davidson <floyd@apaflo.com> says:
>Dan C <youmustbejoking@lan.invalid> wrote:


[deletia]

Floyd, why are you following up Dan C posts?


cordially, as always,

rm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-21-2008, 04:34 AM
Beej Jorgensen
 
Posts: n/a
Default Re: One bug in /etc/rc.d/rc.6, and one omission.

Dan C <youmustbejoking@lan.invalid> wrote:
>> Try "whereis sleep".

>Yeah. What about it? Meaningless in this context.


Not at all. It clearly shows there is a /bin/sleep, which is what the
OP was curious about. Just like your ls, but with even more
information.

In any case, the important lesson here is that there is more than one
instance of "sleep" in the path, and "which" only reports the first one.

-Beej

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:02 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com