Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Using nice on Apple File Sharing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using nice on Apple File Sharing
Authored by: Anonymous on Apr 05, '01 03:53:53PM

OK, I found where the startup scripts live.

But let me say again, I think it is a bad idea to mess with this, because I don't think
AppleShare is causing performance problems. (This means I also haven't tried and am not
going to try doing the following.)

Startup scripts in MacOS X are stored in /System/Library/StartupItems.

In here, you'll find folders for the various programs MacOS X starts while booting. Each
process (application) has its own folder. In the folder is a text file with the name of
the process. This is the shell script that starts that process. The Apple File Server
script looks like this:
--------------------------------------------
#!/bin/sh

. /etc/rc.common

##
# Start the AFP Server
##
if [ "${AFPSERVER:=-NO-}" = "-YES-" ]; then
CheckForNetwork

if [ "${NETWORKUP}" = "-NO-" ]; then exit; fi

ConsoleMessage "Starting Apple File Service"

AppleFileServer &
fi
----------------------------------------------------------
Change: (Actually, don't change, because I don't think you should do this!!!)

AppleFileServer &

to:

Nice -n 5 AppleFileServer &

Now we know how to do it. Should we? No, no, no, no, no, no! But we'll savor the
power that we *could* if we wanted to.

-Rob

p.s. Apple's startup script implementation is sweet, isn't it!?



[ Reply to This | # ]
Using nice on Apple File Sharing
Authored by: oeyvind on Apr 06, '01 04:00:01AM

Just FYI: nice/renice command DOES NOT have any effect on the current MacOS X/Darwin as of now-it's broken.



[ Reply to This | # ]
Using nice on Apple File Sharing
Authored by: Anonymous on Apr 06, '01 04:47:12PM

Ok, thanks. Just saw that in the other thread going on here...

-Rob



[ Reply to This | # ]