how to prevent a program to start at boot time

I had to install a Check Point VPN Client to connect to our Company.

Now the VPN-Client ist always startet and running.

In other OS i know the method with services to start in /etc/rc.d

In OS X i could not find the place, where a program will start at boot time.

There is no entry in "Login Objects" of my Account.

MacBook Air, OS X Mavericks (10.9), 13" // 4GB RAM // 256 GB SSD

Posted on Aug 19, 2014 2:10 PM

Reply
7 replies

Aug 19, 2014 4:25 PM in response to steho

It depends on how the app decided to do it.

If it starts up when the computer boots, look in /Library/LaunchAgents or /Library/LaunchDaemons. They might also use /Library/StartupItems which is deprecated.

If it starts on Login, look in those same places inside your Home folder.


For the first two, it will be a .plist file named in reverse domain name format.

For startupItems, it will be a folder named somehow reflective of the software.


If they are in one of the Launch folders, they are generally controlled by launchctl. You can “unload” them so that they do not run.

The basic syntax is:

sudo launchctl unload -w /Library/LaunchDaemons/com.company.software.plist


The -w options tells it to write the bit to the file to keep it unloaded. If you wish to run it again and have it always run:

sudo launchctl load -w /Library/LaunchDaemons/com.company.software.plist


See here: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/launchctl.1.html


If you want to get rid of it totally, the software should have an uninstaller. Use that.

If it doesn’t, you can just unload it, then delete the plist.

Aug 20, 2014 1:35 AM in response to Barney-15E

Thank you! I learned much about launchctl.

FYI...


stefans-mac:~ hst$ sudo ls -l /Library/Launch*/*checkpoint*

-rw-r--r-- 1 root wheel 564 24 Okt 2013 /Library/LaunchAgents/com.checkpoint.eps.gui.plist

-rw-r--r-- 1 root wheel 738 24 Okt 2013 /Library/LaunchAgents/com.checkpoint.eps.upgrader.plist

-rw-r--r-- 1 root wheel 573 23 Sep 2012 /Library/LaunchAgents/com.checkpoint.epsgui.plist

-rw-r--r-- 1 root wheel 702 6 Sep 2012 /Library/LaunchAgents/com.checkpoint.user.plist

-rw-r--r-- 1 root wheel 1029 23 Sep 2012 /Library/LaunchDaemons/com.checkpoint.cpda.plist

-rw-r--r-- 1 root wheel 1077 24 Okt 2013 /Library/LaunchDaemons/com.checkpoint.epc.service.plist


stefans-mac:~ hst$ sudo launchctl list | grep checkpoint

1830 - com.checkpoint.epc.service


stefans-mac:~ hst$ ps -p 1830

PID TTY TIME CMD

1830 ?? 0:00.48 /Library/Application Support/Checkpoint/Endpoint Connect/TracSrvWrapper

Nov 4, 2014 9:28 AM in response to Barney-15E

hello Barney,


I'm very new at MAC's world, I have same problem as Steho, after a upgrade wacom tablet program, every time I turn on my computer the program starts and stay at dock,i t's bothers me a lot.....does not allow me to remove it from the dock


I've looked in /Library/LaunchAgents, program is there, so, Do I have just copy and paste this at terminal mode ?

sudo launchctl unload -w /Library/LaunchAgents/com.company.software.plist at terminal


thank for your help!!

Nov 4, 2014 3:22 PM in response to lilli256

I've looked in /Library/LaunchAgents, program is there, so, Do I have just copy and paste this at terminal mode ?

sudo launchctl unload -w /Library/LaunchAgents/com.company.software.plist at terminal

Not exactly. You must replace the com.company.software.plist with the name of the file that controls that process. So, you can’t just copy and paste.

Nov 10, 2014 11:19 AM in response to Barney-15E

Hi Barney, sorry my delay....I've had knee surgery last week.........everything is ok now !!


I tried this


sudo launchctl unload -w /Library/LaunchAgents/com.wacom.wacomtablet.plist


and terminal says

Last login: Mon Nov 10 16:51:05 on ttys000

Lillians-iMac:~ lillimac$ sudo launchctl unload -w /Library/LaunchAgents/com.wacom.wacomtablet.plist

nothing found to unload


Yes, program is at LaunchAgents folder, I'm sure.....and only there.
I don't know how to show you........

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

how to prevent a program to start at boot time

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.