Apache start on login

Phil Dobbin phildobbin at gmail.com
Tue Jan 15 00:06:03 PST 2013


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).

Cheers,

  Phil...

-- 
currently (ab)using
CentOS 5.8 & 6.3, Debian Squeeze & Wheezy, Fedora Beefy & Spherical,
Lubuntu 12.10, OS X Snow Leopard & Ubuntu Precise & Quantal



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20130115/95d1acda/attachment.sig>


More information about the macports-users mailing list