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 > Software - Troubleshooting and Discussion > Mac OS X > need help with natd + renice

need help with natd + renice
Thread Tools
Mac Elite
Join Date: Sep 2001
Location: Chile
Status: Offline
Reply With Quote
Dec 26, 2002, 01:40 PM
 
I have at home a G4 as a NAT router+print server+firewall, a hub, and plenty of portables that plug in different places of the house.

However upon waking from sleep or after long uptimes, CUPS will go nuts and printers won't show for anyone.
This is always fixed by a restart ... however 'natd' won't start by default unless started.

I remember that there was a way to start it up by default in OS X 10.1 ...
Can it be done by modifying the rc script or else ?

Also, once started the 'natd' has low priority, so many times the internet connection will have lag in streams, games, etc.
This is fixed easily by a sudo renice -20, but upon restart you can't even start the nat daemon without logging in, much less access terminal each time.


Does anyone know how can I make a script or else that will allow me to start the natd and give it maximum priority upon startup ?

Thx
:: frankenstein / lcd-less TiBook / 1GHz / radeon 9000 64MB / 1GB RAM / w/ext. 250GB fw drive / noname usb bluetooth dongle / d-link usb 2.0 pcmcia card / X.5.8
:: unibody macbook pro / 2.4 Ghz C2D / 6GB RAM / dell 2407wfp - X.6.3
     
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Dec 30, 2002, 06:24 PM
 
Not sure if this can help, but if you enable Internet Connection Sharing in System Prefs, natd will be started automatically.

Otherwise, just add a line in your rc script to launch natd automatically (use nice to run it with the specified nice value).

Another solution (cleaner let's say) would be to add a Startup Item in /Library/StartupItems.
Just have a look at /System/Library/StartupItems for examples.

(You can have a look at this nice HOWTO about StartupItems )
     
   
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 12:10 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