You are not logged in.

#1 2011-08-10 16:47:39

george55
Member
Registered: 2011-08-10
Posts: 68

[SOLVED] rc.d: command not found

I am in the process of installing xfce. One of the steps is to run:

rc.d start dbus

However, when I run this it returns:

bash: rc.d: command not found

Am I missing something?

Last edited by george55 (2011-08-11 04:03:16)

Offline

#2 2011-08-10 16:48:40

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] rc.d: command not found

rc.d is not a command. its a location under /etc. your command should be

sudo /etc/rc.d/dbus start

Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-08-10 16:53:47

george55
Member
Registered: 2011-08-10
Posts: 68

Re: [SOLVED] rc.d: command not found

Thanks, understood!

Offline

#4 2011-08-10 16:55:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] rc.d: command not found

Please post the output of

pacman -Q initscripts
Inxsible wrote:

rc.d is not a command. its a location under /etc. your command should be

sudo /etc/rc.d/dbus start

This is just a folder, the binary is in /sbin - see Xabre's post below.

Last edited by karol (2011-08-10 17:10:21)

Offline

#5 2011-08-10 17:06:34

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 750

Re: [SOLVED] rc.d: command not found

Inxsible wrote:

rc.d is not a command. its a location under /etc. your command should be

sudo /etc/rc.d/dbus start
$  which rc.d
/sbin/rc.d 

               

$pacman -Qo /sbin/rc.d                                                                      
/sbin/rc.d is owned by initscripts 2011.07.3-1
$  rc.d --help                                                                                
usage: rc.d <action> <daemon> [daemon] ...
       rc.d list [started|stopped]
       rc.d help

<daemon> is the name of a script in /etc/rc.d
<action> can be a start, stop, restart, reload, status, ...
WARNING: initscripts are free to implement or not the above actions.

e.g: rc.d list
     rc.d list started
     rc.d help
     rc.d start sshd gpm

Initscripts update, part 1
Initscripts update, part 2

@george55
If rc.d command doesn't work, check your initscripts version, and check your $PATH.

Offline

#6 2011-08-10 17:15:11

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] rc.d: command not found

you are right. rc.d is a command now. my bad smile

@george, rc.d should work, but the way I showed in my previous post is also another way to start/restart/stop daemons. Apparently I am still used to the old way.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2011-08-10 17:25:44

george55
Member
Registered: 2011-08-10
Posts: 68

Re: [SOLVED] rc.d: command not found

In fact the post of Forum Admin solved my problem, but I understand there appears to be an issue with rc.d on my system. Here is the output:

$ which rc.d
which: no rc.d in (/bin:/usr/bin:/sbin:/usr/sbin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core)

$ $PATH
bash: /bin:/usr/bin:/sbin:/usr/sbin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core: No such file or directory

$ pacman -Qo /sbin/rc.d
error: failed to read file '/sbin/rc.d': No such file or directory

Offline

#8 2011-08-10 17:26:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] rc.d: command not found

Could you please post the output of

pacman -Q initscripts

?

Offline

#9 2011-08-10 17:32:06

george55
Member
Registered: 2011-08-10
Posts: 68

Re: [SOLVED] rc.d: command not found

Returns:

initscripts 2010.07-1

Offline

#10 2011-08-10 17:33:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] rc.d: command not found

You have not updated your system. Run 'pacman -Syu' and make sure you're using an up to date mirror. You can generate a fresh mirrorlist here: http://www.archlinux.org/mirrorlist/
You should be using

[karol@black ~]$ pacman -Q initscripts
initscripts 2011.07.3-1

Offline

#11 2011-08-11 04:03:03

george55
Member
Registered: 2011-08-10
Posts: 68

Re: [SOLVED] rc.d: command not found

Done, thanks, this worked!

Offline

#12 2011-08-11 04:53:14

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: [SOLVED] rc.d: command not found

I think think this is a rare opportunity: You system hasn't been update for over a year. Would you mind to portray in what kind of problems you ran during the update?

Offline

#13 2011-08-15 23:01:13

george55
Member
Registered: 2011-08-10
Posts: 68

Re: [SOLVED] rc.d: command not found

Interestingly, all went well! I just ran the update, waited for a while, and things went smoothly. The only issue was that mirrors kept failing, so I had to switch around a lot and re-run the update quite some times because not all packages were downloaded at once. But other than that, all good!

Offline

Board footer

Powered by FluxBB