launchctl (command)
launchctl
[1] macOS (command) interfaces with launchd daemon to load, unload daemons/agents and generally control launchd.
Contents
Folders
Commands
sudo launchctl list
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
[2]sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist
sudo launchctl stop /System/Library/LaunchDaemons/YOUR_DAEMON.plist
[3]sudo launchctl start /System/Library/LaunchDaemons/YOUR_DAEMON.plist
sudo launchctl stop com.openssh.sshd
(it will automatically restart). See also: Activate SSH server on macOS
Related
See also
launchctl
,launchctl unload
,launchctl load
,launchctl list
,launchctl start
,launchctl stop
,/System/Library/LaunchDaemons/
,launchctl stop com.openssh.sshd
,launchctl bootout
,/System/Library/LaunchDaemons/ssh.plist
Advertising: