The OS X equivalent of Windows services is Launchd. The OS X equivalent of services.msc on Windows is launchctl. The daemons managed by launchd can be on demand or can be triggered periodically (this is configurable in launchd.plist)
You can manage the daemons from the command line (from Terminal.app under /Applications/Utilities/) or by using a tool like ...
For most of the "services" (called Daemons or Agents) you can check:
In terminal: $ sudo launchctl list
For example only MySQL you can filter the output of the command above, like $ sudo launchctl list | grep -i mysql. Note -i is to make the filter case insensitive.
These can be controlled with a GUI named Lingon.
There are some other "services", that ...
I don't know how to click menu items without using System Events, but if others get here searching for how to click menu items with System Events:
tell application "System Events" to tell process "Finder"
click menu item "New Finder Window" of menu 1 of menu bar item "File" of menu bar 1
tell application "System Events" to tell process "Finder"...
I figured out that I needed to enter the following in the terminal:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.apsd.plist
I did this already, and it seemed to fix the issue, but would love to know if this is the advisable way to solve the problem.
Also, in case you want to ...
Specifically for the gamed service, the following command in one of the posts about a similar topic on the Apple Support Communities worked for me, without any need to modify plists or rename files:
sudo defaults write /System/Library/LaunchAgents/com.apple.gamed disabled -bool true
Changing "true" back to "false" will re-enable it, although I've not tried ...
In a nutshell, sharedfileslistd is an XPC helper agent that provides SharedFilesLists private API in CoreServices that gets called by, for instance, by LaunchServices APIs and works with so-called SharedFilesLists - special property lists that contain NSURL BookmarkData entries. These are used for recent documents/servers/hosts that you see in Apple->Recent ...
How do i restart sshd in OSX Lion?
You probably know this already, but I'll say to be complete: if you kill sshd processes you'll terminate active SSH sessions to the machine. The sshd daemon provides ssh access to your machine. It handles incoming ssh connections. Not outbound connections.
If sshd is really what you mean then...
Before you restart it, ...
I'd rather have this a comment, but for some reason I can only post answers.
Have a look at LaunchControl: http://www.soma-zone.com/LaunchControl/. While it does not offer a menu item to start/stop services it provides a list of all available launchd jobs, their current status and a way to start/stop them with the click of a button.
LaunchControl now ...
I had same problem (fans at full throttle, CalNCService at 122% of CPU) and have made 2 visits to Apple store and 3rd visit I checked in the Mac for a warranty repair (replaced both fans)... Yet the problem continues.
I went into notifications > edit and disabled all notifications, badges, sounds, etc, except for iMessage, Slack and Outlook.
About 3 ...
Applications and Menu Bar items
Most of these can be easily configured in:
System Preferences → Users&Groups → Login Items
LaunchAgents and LaunchDaemons
Some applications are cannot be configured in the System Preferences (e.g. Sophos AV Scanner, HandsOff Firewall,...) It's best to configure them in their own application to assure that ...
For a quicker and easy-to-remember way, you can alias the command shown in the top answer into lscleanup like so:
# Clean up LaunchServices to remove duplicates in the “Open With” menu.
alias lscleanup="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user &...
Definitely works, even before restarting:
On your own risk! Do a Time Machine backup first.
Open System Preferences, Internet accounts and untick Calendar for each account.
Open Activity Monitor, search calendar and quit calendar processes.
Open Finder > Go to Folder (⇧⌘G) /Library/Caches and drag contents to trash.
Open Finder > Go to ...
Found the answer in this Apple Support Community thread:
Bug: Keyboard shortcut keys do not always activate a service (a workflow)
Keyboard shortcuts for services will only work properly if they have a ⌘ command key in them. That is, cmd-ctrl-k works, but ctrl-k needs help. The "help" is to go to the app's menu bar and hover over the services so it sees ...
This isn't too difficult to do, you just need to know the right magic. I'll walk you through it.
Open Automator, and when prompted to choose a type for your document, select Service. If you're not prompted, just hit ⌘N to make a new automator file.
At the top of the rightmost panel, make sure that Output replaces selected text is checked, and the first drop-...
Yes you can, using the following code. Note that the UniqueID, if less than 501, may not list the user in the Accounts pane of system preferences, depending upon the OS version. Be careful that it is not already assigned to another user account.
sudo dscl . -create /Users/ThisUserName
sudo dscl . -create /Users/ThisUserName UserShell /bin/bash
sudo dscl . ...
lsboxd is part of the OS X Sandbox.
It allows communication between sandboxed applications.
lsboxd is in the Launch Services API. It is the Launch Services Sandbox Daemon, which governs what apps can launch apps in the OS X sandbox. You can peruse the App Sandbox Guide for more information about sandboxing.
PDF: App Sandbox Design
Turns out this feature has to be enabled now.
After I posted my screenshot I noticed the "Service Preferences..." menu item and clicked it.
Click that menu item, scroll down to where it says "Text" and tick the box that says "Summarize".
One way is to create a service that runs a shell command.
For this, open Automator, create a new Service, check "Output replaces selected text", then add the action "Run Shell Script". In the box where you enter the Shell script write:
cat | sed 's/^/"/' | sed 's/$/"/' | sed 's/""//'
This takes the text you entered as input, and adds a quotation mark at ...
UPDATE: I initially misunderstood the question. To learn how to create a service for the context menu in Safari, see part A of this answer. To learn how to create a service that takes no input and appears in the menubar > Safari > Services menu in Safari, see part B.
Part A: Creating a Contextual Text Service
Follow part B's step 1 (I'll refer to ...
The general security model is that normal users can add any startup items to their realm (user library for them) and not for the system, so don’t let people have admin accounts if you don’t trust them to not run software that installer system level startup items.
There is no easy way to stop an admin user from changing the system. You can enforce gatekeeper ...
I ran into the same problem and thought I'd be smart and run
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
That didn't fix things. It wasn't until I ran it under my user account privileges that the problem was solved.
I usually use scripts like this instead of Automator services:
set old to the clipboard as record
tell application "System Events" to keystroke "c" using command down
do shell script "export LC_CTYPE=UTF-8; pbpaste | /usr/local/bin/pygmentize -g -f rtf | pbcopy"
tell application "System Events" to keystroke "v" using command down