Re: size of supervise/ !

Daryl Tester <[email protected]> Tue, 04 Nov 2008 16:19:33 +1030
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
(* Reply-to set to avoid auto-spammers *)

Otavio Exel wrote:

> this box has an axfrdns service setup on a given IP; for some reason we
> changed providers and the IP is not available anymore; I forgot to
> "down" this service (the box is not in production yet); so supervise has
> been trying to "up" this service w/o success for some months now;
...
> server:/var/service/axfrdns-ajato# ls
...
> drwx--S--- 2 root root 191082496 Nov  3 06:03 supervise

The supervise program in both 0.70 and 0.76 creates the supervise
directory with permission "0700", otherwise known as drwx------.
The permissions on your supervise directory aren't that, so you've
probably had file system corruption at some point (the permission
doesn't make much sense otherwise).  It would also explain the
extra size.

> can I just remove and re-create it?

You'll need to ensure that supervise for that process has been
terminated before you delete the directory (and not restarted
afterwards), but yes supervise should recreate the directory.
Off the top of my head (i.e. I haven't tried it), I'd rename
the directory to something out of the way (e.g. supervise.old)
then reboot.  Once rebooted you should have a new supervise
directory, at which point you can cleanly delete the old
directory.


-- 
Regards,
  Daryl Tester

"I'm beginning to wonder about Cap'n Snooze's military credentials."