bslist List Mach bootstrap services and optional servers
active (A), inactive (I) and on-demand (D).
prefix is com.apple
D .launchd.peruser.4294967294
A .launchd.peruser.501
D .CoreRAID
D .launchd.peruser.65
A .windowserver.active
A .windowserver
D .webfilter
D .UNCUserNotification
D .taskgated
A .system.logger
D .spinreporterd
D .smbfs_load_kext
D .service_helper
A .SecurityServer
D .seatbelt.compilerd
D .iokit.scsid
D .ReportCrash.SafetyNet
D .ReportCrash
D .ReportCrash.DirectoryService
A .RemoteDesktop.PrivilegeProxy
D .ocspd
A .system.notification_center
D .netauth.sysagent
|
D .mio.VDCAssistant
D .mio.IIDCVideoAssistant
A .metadata.mds
D .mDNSResponderHelper
A .mDNSResponder
A .UNCUserNotification.session.256
A .O3Master
D .lockd
D .system.Kernel[UNC]Notifications
A .KernelExtensionServer
D .KerberosAutoConfig
D .java.updateSharingD
D .installdb.system
D .IIDCAssistant
A .iohideventsystem
D .system.hdiejectd
D .gssd
A .FSEvents
D .familycontrols
D .dyld
A .distributed_notifications.2
A .DiskArbitration.diskarbitrationd
|
D .DirectoryService.localonly
A DirectoryService::CPluginRunLoopThread.14
A .DirectoryService
A .system.DirectoryService.libinfo_v1
A .CoreServices.coreservicesd
A .network.IPConfiguration
A .network.EAPOLController
A .SystemConfiguration.PPPController
A .PowerManagement.control
A .SystemConfiguration.configd
D .bsd.dirhelper
D .BluetoothNILServer
D .backupd
D .automountd
A .audio.coreaudiod
D .FontObjectsServer
A .alf
D .airport.updateprefs
D .airportd
D .airport.wps
D .dashboard.advisoryd
D .mio.AVCAssistant
|
ENVIRONMENTAL VARIABLES
LAUNCHD_SOCKET which launchd should use to talk to
FILES
Per-user agents.
/System/Library/LaunchAgents |
System wide daemons.
/System/Library/LaunchDaemons
gCoreMIDIServer
†ATSServer all have suffix .plist
†AddressBook.abd
†AirPortBaseStationAgent
†DictionaryPanelAgent
†FileSyncAgent
†FontValidator
†FontValidatorConduit
†KerberosHelper.LKDCHelper
†NetworkDiagnostics
†PCIESlotCheck
†PreferenceSyncAgent
†ProblemReporter
†PubSub.Agent
†RemoteDesktop
†RemoteUI
†ReportCrash.SafetyNet
†ReportCrash
†ReportPanic
†ScreenSharing
†ServerScanner
†Spotlight
†UserEventAgent-Aqua
†UserEventAgent-LoginWindow
†alf.useragent
†coreservices.uiagent
†dotmac.dmnotifyd
†dotmacsync.uihandler
†familycontrols.useragent
†gssd-agent
†helpdata
†imklaunchagent
†installdb.user
†java.updateSharingD_debug
†metadata.mdwrite
†netauth.useragent
†pboard
†pbs
†pictd
†qtkitserver
†quicklook
†scrod
†seatbelt.compiler
†syncservices.SyncServer
†syncservices.uihandler
edu.mit.Kerberos.CCacheServer
edu.mit.Kerberos.KerberosAgent
org.openbsd.ssh-agent
org.x.X11
|
gbootps
†ATSServer
†AppleFileServer
†CoreRAID
†DirectoryServices
†DirectoryServicesLocal
†DumpPanic
†FileSyncAgent.sshd
†IFCStart
†IIDCAssistant
†InternetSharing
†KerberosAutoConfig
†KernelEventAgent
†ODSAgent
†RFBRegisterMDNS_RemoteManagement
†RFBRegisterMDNS_ScreenSharing
†RemoteDesktop.PrivilegeProxy
†ReportCrash.DirectoryService
†ReportCrash.SafetyNet
†ReportCrash
†SystemStarter
†UserNotificationCenter
†WindowServer
†airport.wps
†airportPrefsUpdater
†airportd
†alf.agent
†atrun
†audio.coreaudiod
†autofsd
†automountd
†backupd-attach
†backupd-auto
†backupd
†blued
†bootlog
†bsd.dirhelper
†configd
†configureLocalKDC
†coreservicesd
†dashboard.advisory.fetch
†diskarbitrationd
†distnoted
†dnsextd
†docsetinstalld
†dyld
†dynamic_pager
†efax
†familycontrols
†firmwaresyncd
†fseventsd
†gssd
†hdiejectd
†hidd
†installdb.system
†java.updateSharingD
†kdcmond
†kdumpd
†kextd
†kuncd
†lockd
†loginwindow
†mDNSResponder
†mDNSResponderHelper
†metadata.mds
†mio.AVCAssistant
†mio.IIDCVideoAssistant
†mio.VDCAssistant
†netauth.sysagent
†newsyslog
†nfsd
†nis.rpc.yppasswdd
†nis.ypbind
†nis.ypserv
†notifyd
†ocspd
†pcastagentd
†periodic-daily
†periodic-daily.plist~
†periodic-monthly
†periodic-weekly
†portmap
†scsid
†seatbelt.compilerd
†securityd
†service_helper
†smb.server.preferences
†smbfs_load_kext
†spindump
†stackshot
†statd.notify
†syslogd
†systemkeychain
†taskgated
†update
†usbmuxd
†uucp
†webfilter
†xgridagentd
†xgridcontrollerd
com.vix.cron
gcomsat
geppc
gexec
gfinger
gftp
glogin
gnmbd
gntalk
org.amavis.amavisd
org.apache.httpd
org.cups.cups-lpd
org.cups.cupsd
org.isc.named
org.net-snmp.snmpd
org.ntp.ntpd
org.postfix.master
org.samba.winbindd
gshell
gsmbd
gssh
gtelnet
gtftp
| /Library/LaunchAgents | Per-user agents provided by the administrator.
empty smacker 3/17/08
| | ~/Library/LaunchAgents | Per-user agents provided by the user.
empty smacker 3/17/08
| | | |
| /Library/LaunchDaemons | System wide daemons provided by the administratori
Causes icon to appear in menubar
|
465 Sep 28 03:57 com.sophos.intercheck.plist
477 Sep 28 03:58 com.sophos.notification.plist
477 Oct 6 03:34 com.sophos.autoupdate.plist
553 Oct 27 13:37 com.mozy.backup.plist
<key>Label</key> <string>com.mozy.backup</string>
<key>OnDemand</key> <false/>
<key>RunAtLoad</key> <true/>
<key>ProgramArguments</key>
<array>
<string>/Applications/MozyHome.app/Contents/Resources/MozyHomeBackup</string>
</array>
<key>ServiceIPC</key> <false/>
<key>UserName</key> <string>root</string>
<key>GroupName</key> <string>wheel</string>
|
SEE launchd.plist, launchd.conf(5), launchd(8)
/System/Library/LaunchDaemons/bootpd.plist
<key>Disabled</key> <true/>
<key>Label</key> <string>com.apple.bootpd</string>
<key>ProgramArguments</key> <array> <string>/usr/libexec/bootpd</string> </array>
<key>inetdCompatibility</key> <dict> <key>Wait</key> <true/> </dict>
<key>Sockets</key> <dict> <key>Listeners</key> <dict>
<key>SockServiceName</key> <string>bootps</string>
<key>SockType</key> <string>dgram</string>
<key>SockFamily</key> <string>IPv4</string>
/System/Library/LaunchDaemons/com.apple.bootlog
<key>ProgramArguments</key> <array> <string>/usr/libexec/bootlog</string> </array>
<key>RunAtLoad</key> <true/>
<key>LaunchOnlyOnce</key> <true/>
> cat /System/Library/LaunchDaemons/telnet.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key> <true/>
<key>Label</key> <string>com.apple.telnetd</string>
<key>ProgramArguments</key> <array> <string>/usr/libexec/telnetd</string> </array>
<key>inetdCompatibility</key> <dict> <key>Wait</key> <false/>
</dict>
<key>Sockets</key>
<dict>
<key>Listeners</key>
<dict> <key>SockServiceName</key> <string>telnet</string> <key>Bonjour</key> <true/>
</dict>
</dict>
<key>SessionCreate</key> <true/>
</dict>
</plist>
telnet smacker
Trying 192.168.1.9…
telnet: connect to address 192.168.1.9: Connection refused
sudo launchctl load -F /System/Library/LaunchDaemons/telnet.plist (-F force as plist says disabled)
telnet smacker
Trying 192.168.1.9…
Connected to smacker.GERMANS.
Escape character is '^]'.
login:
sudo launchctl stop com.apple.telnetd
<key>Label</key> <string>com.vix.cron</string>
<key>ProgramArguments</key> <array> <string>/usr/sbin/cron</string> </array>
<key>KeepAlive</key>
<dict> <key>PathState</key> <dict> <key>/etc/crontab
</key> <true/> </dict> </dict>
<key>QueueDirectories</key> <array> <string>/usr/lib/cron/tabs</string> </array>
Darwin September 30, 2004
Double Clicking on a plist in finder starts Property List Editor
There exists lingon which is a little more sexy by Peter Borg .
GETRLIMIT(2) BSD System Call
getrlimit, setrlimit -- control maximum system resource consumption
#include
int getrlimit(int resource, struct rlimit *rlp);
int setrlimit(int resource, const struct rlimit *rlp);
Limits on the consumption of system resources by the current process and each process it creates may be obtained with the getrlimit() call, and set with the setrlimit() call.
| resource | Maximums
| RLIMIT_CPU | cpu seconds
| RLIMIT_NOFILE | number of open files
| RLIMIT_FSIZE | bytes of files that may be created.
| RLIMIT_NPROC | number of simultaneous processes
| RLIMIT_MEMLOCK | memory using mlock(2)
| RLIMIT_RSS resident set size, i.e. physical memory
| RLIMIT_DATA data segment ; how far a program may extend its break with the sbrk(2) system call.
| RLIMIT_STACK stack segment
| RLIMIT_CORE| size of core file that may be created.
| | | | | | | | | |
A resource limit is specified as a soft limit and a hard limit.
When a soft limit is exceeded a process may receive a signal (for example, if the cpu time or file size is exceeded), but it
will be allowed to continue execution until it reaches the hard limit (or modifies its resource limit).
struct rlimit { rlim_t rlim_cur; /* current (soft) limit */
rlim_t rlim_max; /* hard limit */
};
Processes may alter rlim_cur (Soft) within the range from 0 to rlim_max (Hard) or
(irreversibly) lower rlim_max.
Only the super-user may raise the maximum limits.
This is a per-process limit, and affects all child processes
A break call fails if the data space limit is reached.
When the stack limit is reached, the process receives a segmentation fault (SIGSEGV).
A file I/O operation that would create a file larger that the process' soft limit will cause
the write to fail and a signal SIGXFSZ to be generated; .
When the soft cpu time limit is exceeded, a signal SIGXCPU is sent .
RETURN VALUES
0 success
-1 error code is stored in the global location errno.
ERRORS
getrlimit() and setrlimit() system calls will fail if:
[EFAULT] address specified for rlp is invalid.
[EINVAL] resource is invalid.
The setrlimit() call will fail if:
[EINVAL] specified limit is invalid (e.g., RLIM_INFINITY or lower than rlim_cur).
[EPERM] limit specified would have raised the maximum limit value and the
caller is not the super-user.
LEGACY SYNOPSIS
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
The include files <sys/types.h> and <sys/time.h> are necessary.
COMPATIBILITY
setrlimit() now returns with errno set to EINVAL in places that historically succeeded.
It no longer accepts "rlim_cur = RLIM_INFINITY" for RLIM_NOFILE.
Use "rlim_cur = min(OPEN_MAX, rlim_max)".
SEE ALSO
csh(1), sh(1), quota(2), sigaction(2), sigaltstack(2), sysctl(3), compat(5)
How does mysqld get started on OSX?
- Get process id:
sudo head /usr/local/mysql/data/smackerPro.pid
194
/bin/ps -A -o ppid :x|g mysqld
114 ?? 0:00.03 /bin/sh /usr/local/mysql/bin/mysqld_safe
--datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/smackerPro.pid
194 ?? 0:00.36 /usr/local/mysql/bin/mysqld
--basedir=/usr/local/mysql
--datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin
--log-error=/usr/local/mysql/data/smackerPro.err
--pid-file=/usr/local/mysql/data/smackerPro.pid
--user=mysql
|