You are not logged in.
Pages: 1
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
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
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
and what are the permissions on rc.local?
(ls -l /etc/rc.local)
Offline
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
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
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
Pages: 1