How to remove a daemon from auto-starting at boot?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

How to remove a daemon from auto-starting at boot?

Postby Q-collective on Wed Mar 13, 2013 8:44 pm

So, probably an easy question, but I can't find the answer straight away.

I have a backup service running, CrashPlan, which is using my external hard disk as one backup destination. However, at boot time I don't always have the disk plugged in. So, what does CrashPlan do? It just creates a /media/<username>/System Backup directory on its own and starts backing up... on my internal hard drive...

So, I rather just want to avoid having the crashplan daemon in /etc/init.d start up at boot time, so I can do that myself on an as-needed basis. The question is: How do I do that?

In Gentoo I would just run as root:

Code: Select all
rc-update del crashplan boot


Which would remove the crashplan from the bootlevel. What is the equivalent on Mint?
Q-collective
Level 1
Level 1
 
Posts: 25
Joined: Wed Mar 13, 2013 10:26 am

Linux Mint is funded by ads and donations.
 

Re: How to remove a daemon from auto-starting at boot?

Postby bigj231 on Thu Mar 14, 2013 12:34 am

I think you just need to remove it from/comment it out of your /etc/rc.local. I'm not 100% sure on that though.
Running on a 4-slot toaster @ 60Hz
User avatar
bigj231
Level 5
Level 5
 
Posts: 793
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere

Re: How to remove a daemon from auto-starting at boot?

Postby Q-collective on Thu Mar 14, 2013 5:33 am

bigj231 wrote:I think you just need to remove it from/comment it out of your /etc/rc.local. I'm not 100% sure on that though.

The /etc/rc.local is empty by default. Do I have to manually edit it? Or is there a tool (eg like Gentoo's rc-update) that does it for me?
Q-collective
Level 1
Level 1
 
Posts: 25
Joined: Wed Mar 13, 2013 10:26 am

Re: How to remove a daemon from auto-starting at boot?

Postby catweazel on Thu Mar 14, 2013 5:36 am

See if it's listed in Startup Applications, in Start menu.
Mint Testing Team & Mint Donor #3606
KDE 4.12.0, custom preemptive kernel 3.12.5,
Intel i7 4770K @ 4.7GHz, 16GB 2666MHz XMP,
4 Samsung 840 PRO 512GB SSDs in RAID0,
6TB HW RAID10, dual 24" Acer X243H,
Gigabyte nVidia GTX 680 Super Overclock
User avatar
catweazel
Level 7
Level 7
 
Posts: 1655
Joined: Fri Oct 12, 2012 9:44 pm

Re: How to remove a daemon from auto-starting at boot?

Postby Q-collective on Thu Mar 14, 2013 5:39 am

TehGhodTrole wrote:See if it's listed in Startup Applications, in Start menu.

I might be mistaking, but doesn't Startup Applications only list user level applications?

I'm not at home right now but did open SA yesterday for another little tweak and don't remember seeing crashplan there.
Q-collective
Level 1
Level 1
 
Posts: 25
Joined: Wed Mar 13, 2013 10:26 am

Re: How to remove a daemon from auto-starting at boot?

Postby bigj231 on Thu Mar 14, 2013 10:44 am

Yes, the rc.local is empty by default, but you could kill/stop crashplan upon boot by adding a line to it. see:http://www.ghacks.net/2009/04/04/get-to-know-linux-the-etcinitd-directory/ More specifically, use something like:
Code: Select all
/etc/init.d/crashplan stop
Of course, use the correct script name there.

I don't know of a utility that will update your rc.local for you. To be honest, I just manually edited it when I was running Gentoo.
Running on a 4-slot toaster @ 60Hz
User avatar
bigj231
Level 5
Level 5
 
Posts: 793
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere

Re: How to remove a daemon from auto-starting at boot?

Postby eanfrid on Thu Mar 14, 2013 11:03 am

If the service is managed by upstart, you have at least 2 solutions to prevent its start at boot:

- locate the right .conf file under /etc/init and rename it with anything that does not end with .conf*
or (better)
- comment the line "start on..." by adding a leading # there

cf: http://upstart.ubuntu.com/cookbook/#dis ... y-starting
Main desktop: Debian GNU/Linux Wheezy 64bit - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1871
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: How to remove a daemon from auto-starting at boot?

Postby Q-collective on Thu Mar 14, 2013 11:41 am

Ok, thanks for these replies. I'll try them as soon as I get home :)
Q-collective
Level 1
Level 1
 
Posts: 25
Joined: Wed Mar 13, 2013 10:26 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Mute Ant, ragnarkar, robkay, zuzuba and 46 guests