If you are simply asking for confirmation, then yes, "serveradmin
[stop|start] dirserv" will stop/start directory services. At least
that's what the man page says. Will this solve your problem? No,
it's only a band-aid.
Yes, I know. Doesn't look like it matters...
xserve:~ root# serveradmin stop dirserv && serveradmin start dirserv
Service dirserv returned error UNEXPECTED_COMMAND
dirserv:error = "UNEXPECTED_COMMAND"
Service dirserv returned error UNEXPECTED_COMMAND
dirserv:error = "UNEXPECTED_COMMAND"
You should try to isolate and resolve the underlying problem that
is causing directory services to hang. It is not "normal" for a
server to just start hanging every 2 weeks. Something else, maybe
a corrupt filesystem, corrupt LDAP records, or even bad RAM might
be the problem. If this were my production server, I would NOT
want to resolve some "unknown" problem with "therapeutic
restarts;" I would systematically isolate the cause. Start with
the logs and move out from there.
Already tried this. Nobody on this list had anything to offer, other
than Jaime Magiera confirming this behavior on his server. My next
step is to escalate it with Apple support, but I'm looking for
something to keep us "band-aided" until the issue is resolved. Trust
me, I *hate* the idea of "therapeutic restarts"... it's what I'm used
to hearing from MS Exchange admins.
Goodluck.
Thanks.
--
Jason Dixon
Manager, IT Services
Raba Technologies