Difference between revisions of "Launchctl (command)"
Jump to navigation
Jump to search
↑ 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
Tags: Mobile web edit, Mobile edit |
|||
Line 11: | Line 11: | ||
* <code>sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist</code><ref>https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line</ref> | * <code>sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist</code><ref>https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line</ref> | ||
* <code>sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist</code> | * <code>sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist</code> | ||
− | * <code>sudo launchctl stop /System/Library/LaunchDaemons/YOUR_DAEMON.plist</code><ref>https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line</ref> | + | * <code>sudo launchctl stop /System/Library/LaunchDaemons/YOUR_DAEMON.[[plist]]</code><ref>https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line</ref> |
− | * <code>sudo launchctl start /System/Library/LaunchDaemons/YOUR_DAEMON. | + | * <code>sudo launchctl start /System/Library/LaunchDaemons/YOUR_DAEMON.plist</code> |
− | |||
== See also == | == See also == |
Revision as of 03:47, 13 April 2020
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 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
See also
- Systemd:
systemctl
,systemd-journald
,journalctl
systemd-cat
,systemd-logind
,systemd-networkd
:networkctl
,systemd-timesyncd
,systemd-resolved
,systemd-udevd
[4],Systemd-logind: loginctl
,hostnamectl
,udevadm
,systemd-run
,portablectl
,systemd-nspawn
, systemd resource management, Timer (systemd), systemd logs,/etc/systemd/
, systemd services,systemd-mount
,/run/systemd/
,.service
,/usr/lib/systemd/
,/usr/lib/systemd/system/
,/usr/lib/systemd/system/systemd-resolved.service
,/lib/systemd/
, machinectl, systemd-oomd, systemd-analyze - macOS: macOS versions, iTerm2, Homebrew, FileVault, System Integrity Protection,
dscacheutil
,networksetup
, XNU kernel, APFS, diskutil, mdfind, Keychain Access, Growl, Activity Monitor, sidecar, macOS FHS, Apple Notification Center,sw_vers
, Spotlight,pbcopy
, MacOS application firewall,Applesimutils
, Automatic login,security (command)
,codesign
,spctl
, Alfred, Xcode,system_profiler
,log show
, MacOS Preview, Rectangle app, Finder, macOS: Shortcuts, SEP, osascript, macOS profile, UTM,softwareupdate, systemsetup, pmset
, macOS tips, macOS Dock, Automator, SIP, System Preferences,installer, cryptex
, AirPlay, macOs first setup, Universal Control, menu bar, IPSW
Advertising: