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
Q-collective
Level 1
Level 1
Posts: 25
Joined: Wed Mar 13, 2013 10:26 am

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

Postby Q-collective » 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?

User avatar
bigj231
Level 5
Level 5
Posts: 790
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere
Contact:

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

Postby bigj231 » 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

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 Q-collective » 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?

User avatar
catweazel
Level 7
Level 7
Posts: 1658
Joined: Fri Oct 12, 2012 9:44 pm

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

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

See if it's listed in Startup Applications, in Start menu.
Mint Testing Team & Mint Donor #3606
Intel i7 4820K @ 4.7GHz, 32GB Corsair Vengeance Pro
2133MHz XMP, 4 Samsung 850 PRO 512GB SSDs in
RAID0, 12TB HW RAID10, 3 x 24" Samsung UlHD,
Custom pre-emptive kernel 4.7.5,
Dual nVidia GTX 1080

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 Q-collective » 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.

User avatar
bigj231
Level 5
Level 5
Posts: 790
Joined: Fri Feb 26, 2010 10:16 am
Location: Middle of Nowhere
Contact:

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

Postby bigj231 » 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
eanfrid
Level 7
Level 7
Posts: 1865
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

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

Postby eanfrid » 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 Jessie 64bit - MATE
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox

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 Q-collective » Thu Mar 14, 2013 11:41 am

Ok, thanks for these replies. I'll try them as soon as I get home :)


Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 10 guests