Apache start on login
Ryan Schmidt
ryandesign at macports.org
Tue Jan 15 00:46:51 PST 2013
On Jan 15, 2013, at 02:06, Phil Dobbin <phildobbin at gmail.com> wrote:
> On 01/15/2013 07:15 AM, Ryan Schmidt wrote:
>>
>> On Jan 15, 2013, at 00:00, Phil Dobbin wrote:
>>
>>> Apache/2.2.3 from MacPorts
>>>
>>> What's the equivalent command to '# chkconfig httpd on' I have run to
>>> get apache to start at login?
>>
>> I'm not familiar with the "chkconfig" command, but if you want to start MacPorts apache2 at login, then you would use "sudo port load apache2".
>>
>
> Thanks, Ryan.
>
> The 'chkconfig' command is the RPM (Red Hat/Fedora/CentOs) equivalent of
> the init script 'sudo /etc/init.d/apache2 start|graceful|stop' command
> on Deb/Ubuntu distros & when it's installed by apt it automatically
> starts apache on login (on RPM distros yum doesn't, so you have to use
> the 'chkconfig' command to ensure it starts at login).
I should correct myself. "sudo port load apache2", which calls out to "launchctl load", will start apache2 immediately, and at every subsequent system startup. There's no need for an OS X user to be logged in.
More information about the macports-users
mailing list