Launchctl (command)

From wikieduonline
Revision as of 08:55, 26 August 2021 by Welcome (talk | contribs) (→‎Commands)
Jump to navigation Jump to search

launchctl[1] macOS (command) interfaces with launchd daemon to load, unload daemons/agents and generally control launchd.

Folders

  • /System/Library/LaunchDaemons
  • /System/Library/LaunchAgents
  • /Library/LaunchDaemons


Commands

sudo launchctl stop com.openssh.sshd (it will automatically restart). See also: Activate SSH server on macOS

See also

  • https://ss64.com/osx/launchctl.html
  • https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line
  • https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line
  • https://wiki.ubuntu.com/DebuggingSystemd
  • Advertising: