LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-13-2017, 08:11 PM   #1
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 205

Rep: Reputation: Disabled
How do I set a process to start automatically at bootup?


I run virtualbox on slackware. I often reboot into windows. Every time I boot back into Linux, virtualbox complains because /etc/rc.d/rc.vboxdrv is not running. I have to manually start it. Is there a way to make it start automatically? Thank you in advance for any guidance you can offer...
 
Old 11-13-2017, 08:52 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,882
Blog Entries: 18

Rep: Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346
What is the output of this command (here's the output on my system, which is not dual boot:

Code:
$ ls -l /etc/rc.d/rc.vbox*
-rwxr-xr-x 1 root root  6796 Apr 22  2015 /etc/rc.d/rc.vboxautostart-service
-rwxr-xr-x 1 root root 10140 Apr 22  2015 /etc/rc.d/rc.vboxballoonctrl-service
-rwxr-xr-x 1 root root 12680 Apr 22  2015 /etc/rc.d/rc.vboxdrv
-rwxr-xr-x 1 root root  9917 Apr 22  2015 /etc/rc.d/rc.vboxweb-service
If the files are not executable, you can use, as root, chmod +x to make them so. See man chmod for more.

Last edited by frankbell; 11-13-2017 at 08:55 PM.
 
Old 11-13-2017, 09:54 PM   #3
bassmadrigal
Senior Member
 
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,571

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
You can add any scripts or commands you want run into your /etc/rc.d/rc.local file.

I have the following in mine, which checks to verify that rc.vboxdrv is executable and then will run it.

Code:
# Start vboxdrv
if [ -x /etc/rc.d/rc.vboxdrv ]; then
  /etc/rc.d/rc.vboxdrv start
fi
You can read more on it on the README.Slackware on the virtualbox page on SBo.
 
Old 11-13-2017, 10:09 PM   #4
maschelsea
Member
 
Registered: Dec 2016
Distribution: Slackware 64bit 14.2
Posts: 205

Original Poster
Rep: Reputation: Disabled
Thank you.

Code:
root@caitlyn:~# ls -l /etc/rc.d/rc.vboxdrv 
-rwxr-xr-x 1 root root 9842 Jun 10 15:49 /etc/rc.d/rc.vboxdrv*
The /etc/rc.d/rc.local fix should work. I guess I'll find out the next time I reboot. I should've thought of that myself. Thank you for pointing out the rc.local file...
 
Old 11-13-2017, 10:13 PM   #5
bluewire
Member
 
Registered: Oct 2006
Location: Greece
Distribution: Ubuntu
Posts: 34

Rep: Reputation: 0
sudo update-rc.d service enable won't do it?
 
Old 11-13-2017, 10:29 PM   #6
montagdude
Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 728

Rep: Reputation: 529Reputation: 529Reputation: 529Reputation: 529Reputation: 529Reputation: 529
Quote:
Originally Posted by maschelsea View Post
Thank you.

Code:
root@caitlyn:~# ls -l /etc/rc.d/rc.vboxdrv 
-rwxr-xr-x 1 root root 9842 Jun 10 15:49 /etc/rc.d/rc.vboxdrv*
The /etc/rc.d/rc.local fix should work. I guess I'll find out the next time I reboot. I should've thought of that myself. Thank you for pointing out the rc.local file...
By the way, this is all documented in the README.SLACKWARE file that comes with the VirtualBox SlackBuild. You should read it.
 
Old 11-13-2017, 11:35 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,882
Blog Entries: 18

Rep: Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346Reputation: 3346
Quote:
sudo update-rc.d service enable won't do it?
Slackware does not share the *buntus' creepy sudo fetish, and Slackware uses BSD-style init scripts, so you are correct. That won't do it.

To put it a bit less--er--pejoratively, it's only Ubuntu and its derivatives that configure sudo out of the box. Every other distro I've ever tried expects the person installing it to choose both a root password and a user name and password at time of install or first run, and to use su to acquire root privileges.

If you try sudo on them, it won't work and you will get a warning that "this will be reported." Of course, if you are a home user, you can ask, "reported to whom?" and have it be a darned good question.

Frankly, I have never seen a persuasive argument for the sudo thing.

If I install a *buntu for regular use, as opposed to for distro hopping, the first thing I do is give root a known password so I can use su. It's quite simple when you know how.

Quote:
By the way, this is all documented in the README.SLACKWARE file that comes with the VirtualBox SlackBuild. You should read it.
As an aside, I do not use the VirtualBox Slackbuild. I've found the *.run script from the VirtualBox website to be more reliable.

Last edited by frankbell; 11-13-2017 at 11:53 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How To Start A Process on Bootup bzlaskar Linux - General 3 08-26-2010 02:09 PM
How to Start process automatically khirodpatra Linux - Newbie 3 07-08-2010 03:43 AM
Controlling which process start automatically at startup austinium Linux - Newbie 4 03-11-2008 08:31 PM
How to start a process with specific uid/gid during bootup? senthilpr_in Linux - Software 5 05-24-2007 12:22 AM
Setting up GDM to start automatically upon bootup Crushing Belial Slackware 5 02-22-2006 01:19 PM

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

All times are GMT -5. The time now is 07:20 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration