Scott Parish: Blog

Fri, 19 Aug 2005
Avoid reboots on OS X

I just had two, back to back, problems on Mac OS X.

First my printers disappeared, and i wasn't able to add new ones; several minutes after clicking the "add" button i'd get a error message about "server-error-service-unavailable". Googling found that this was a cups error message. It turns out there was cruft in /var/spool/cups which--after deleting (i didn't delete the tmp subdirectory) and restarting cups--everything took off working fine.

The other problem was that spotlight searches were returning nothing. I finally found out about mdutil and tried running both of:

mdutil -s /
mdutil -i /

to check the indexing status and try turning it on. The status returned empty, and turning indexing on gave the error: Could not set indexing status for volume. I took the advice of removing /Library/Spotlight and /.Spotlight-V100 and then running "Repair Disk Permissions" in Disk Utility. Restarting Metadata saw spotlight working again.

In both cases, the instructions i were following suggested doing the above and then rebooting the computer. Reboots are evil. The desired effect of rebooting in both cases was to get the service processes started again. It turns out you can do this quite easily manually. OS X has an equivalent to the /etc/rc.d/init.d scripts found on most decent unix systems, but a little harder to find given they are tucked away in /System/Library/StartupItems. To get the above two services started again, i just had to do:

cd /System/Library/StartupItems/PrintingServices
./PrintingServices start
cd /System/Library/StartupItems/Metadata
./Metadata start

Reboots sold separately, batteries not included, not available where prohibited.

[2005.08.19 18:17] | [mac-osx] | #
  Categories
/ (77)
articles/ (33)
  health/ (1)
  humor/ (2)
  religious/ (7)
  technical/ (19)
books/ (9)
  general/ (5)
  health/ (1)
  technical/ (3)
humor/ (6)
meta/ (1)
poetry/ (1)
quotes/ (11)
rambles/ (8)
reviews/ (1)
speeches/ (6)
  technical/ (3)
tips/ (1)
  mac-osx/ (1)

Archives
2005-Oct
2005-Sep
2005-Aug
2005-Jul
2005-Jun
2005-May
2005-Apr
2004-Oct
2004-Sep
2004-Aug
2004-Jul
2004-Jun
2004-May
2004-Apr
2004-Mar
2004-Jan
2003-Dec
2003-Nov
2003-Oct
2003-Sep
2003-Aug
2003-Jul
2003-May
2003-Apr
2003-Mar
2003-Feb


RSS

blog powered by: pyblosxom

Copyright 2000-2003 Scott Parish
All rights reserved.