'/etc/init.d' ou 'service' equivalente no Mac OS X

7

Existe algum /etc/init.d ou service equivalente no Mac OS X Lion? Eu quero iniciar / parar os daemons, como o apache.

    
por Takayuki Sato 02.07.2012 / 11:15

1 resposta

8
man launchd

DESCRIPTION launchd manages processes, both for the system as a whole and for individual users. The pri- mary and preferred interface to launchd is via the launchctl(1) tool which (among other options) allows the user or administrator to load and unload jobs. Where possible, it is preferable for jobs to launch on demand based on criteria specified in their respective con- figuration files.

During boot launchd is invoked by the kernel to run as the first process on the system and to further bootstrap the rest of the system.

You cannot invoke launchd directly.

    
por 02.07.2012 / 11:34