Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Our Archives > General Archives > Servers > Manual (Terminal) start of Admin Services: FTP? DHCP? Etc. Etc.

 
Manual (Terminal) start of Admin Services: FTP? DHCP? Etc. Etc.
Thread Tools
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Sep 16, 2002, 11:46 PM
 
I need some pointers on how I can manually start some services on my OS X Server (v10.1) through the terminal in case Server Admin decides not to open....can anybody help me with the exact commands on manually starting FTP and the DHCP services via Terminal? I can get the Web Server started with no problem by using "sudo apachectl start"...surely the other services can be done very similar, right?

Thanks!
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Sep 17, 2002, 11:11 PM
 
The products you list run differently, so have very different startup instructions.

In the case of ftp, it runs under inetd (or xinetd in 10.2).

To enable or disable ftp under 10.1, edit the file /etc/inetd.conf and uncomment/comment the line that begins "ftp".

Then find the PID of the inetd process:

ps -aux|grep inetd

and kill -HUP <pid of inetd>

to make your changes active.

Under 10.2, the configurations are stored in /etc/xinetd.d

Edit the file 'ftp' and change te 'Disabled = yes' line to 'disabled = no'

then: killall -HUP xinetd

to make the changes take effect,

The above can be used for any x/inetd-based service.

DHCP, on the other hand, runs under its own process, not under inetd. As such it will have its own startup script. Once you find the script, you'll usually find that a:

/path/to/startupscript stop

followed by a:

/path/to/startupscript start

will restart the process (need to be run as root or under sudo, of course)
Gods don't kill people - people with Gods kill people.
     
Posting Junkie
Join Date: Nov 2001
Location: Retired.
Status: Offline
Sep 18, 2002, 12:24 AM
 
Thanks alot, I'll give that a whirl....I appreciate the info and response!

     
 
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2