You are not logged in.

#1 2009-08-25 10:12:07

sant527
Member
Registered: 2009-06-21
Posts: 273

rc.local not getting run

I have put some commands in rc.local to run at boot but rc.local is not running

How to run it at boot

Offline

#2 2009-08-25 10:28:15

kowalski
Member
Registered: 2009-05-07
Posts: 82

Re: rc.local not getting run

Are you sure the command you put into rc.local is correct? Think of rc.local having a different $PATH than you user does. Try executing the command with an absolute path instead of just its name.
Maybe post your rc.local.


He who says A doesn't have to say B. He can also recognize that A was false.

Offline

#3 2009-08-25 11:45:56

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: rc.local not getting run

My rc.local looks like this

#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#


# Start vboxadd
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxadd ]; then
    /etc/rc.d/rc.vboxadd start
fi

# Start vboxadd-service
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxadd-service ]; then
    /etc/rc.d/rc.vboxadd-service start
fi

sudo mount.vboxsf -o uid=1000,gid=100 Arch ~/sharedfolder

Offline

#4 2009-08-25 11:48:55

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: rc.local not getting run

and what are the permissions on rc.local?
(ls -l /etc/rc.local)

Offline

#5 2009-08-25 12:06:43

sant527
Member
Registered: 2009-06-21
Posts: 273

Re: rc.local not getting run

I think the problem is with slim and autologin enabled in slim

I removed the slim from daemon in rc.conf and made required changes in the inittab

then the rc.local started working

Last edited by sant527 (2009-08-25 12:08:04)

Offline

#6 2009-08-25 12:25:52

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: rc.local not getting run

sant527 wrote:

sudo mount.vboxsf -o uid=1000,gid=100 Arch ~/sharedfolder

(Probably) completely unrelated, but why the sudo?  rc.local is executed with root perms iirc.

Offline

#7 2009-08-25 16:53:01

kowalski
Member
Registered: 2009-05-07
Posts: 82

Re: rc.local not getting run

Yes, and what do you think ~/sharedfolder will be resolved to?
That will end up in /root if it does at all.
Furthermore try /sbin/mount.vboxsf or where ever it is.


He who says A doesn't have to say B. He can also recognize that A was false.

Offline

Board footer

Powered by FluxBB