I'm trying to wrap my head around launchctl.
I need to run the MacOS equivalent of systemctl status zabbix-agent
I am trying with launchctl print com.zabbix.zabbix_agentd
but I get:
Unrecognized target specifier. <service-target> takes a form of <domain-target>/<service-id>.
Please refer to `man launchctl` for explanation of the <domain-target> specifiers.
Usage: launchctl print <domain-target> | <service-target>
I'm a bit at loss here, if anyone can help me, I would greatly appreciate it.
Thanks a lot in advance!
launchctl print GUI/(id -u) /Library/LaunchAgents/com.zabbix.zabbix_agentd
, whereid -u
will return UID. You can replaceid -u
with a specific, desired UID. ss64.com/osx/launchctl.html$ launchctl print GUI 501 /Library/LaunchAgents/com.zabbix.zabbix_agentd 1🚫 Unrecognized target specifier. <service-target> takes a form of <domain-target>/<service-id>. Please refer to man launchctl for explanation of the <domain-target> specifiers. Usage: launchctl print <domain-target> | <service-target>