WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Which var dir to use?  (Read 2509 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Which var dir to use?
« on: March 17, 2010, 07:04:33 AM »
Playing with mail MTA's, clients and other tools there is a question, where to put the spool directory. Usually on Linux it is /var/spool. postfix.tcz using /usr/local/var/spool directory. I'm fine with it, but would be good the standardize it across applications.

Question is valid not only for mail spool but more generic, as /var is used to store log files, different spools, PID's of running processes, web server roots, etc.

My vote is /var.

Please comment.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Which var dir to use?
« Reply #1 on: March 17, 2010, 08:14:07 AM »
I'd think /var as well. Many of the uses are not supposed to survive a reboot, which would happen with a PPI and /usr/local/var.
The only barriers that can stop you are the ones you create yourself.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Which var dir to use?
« Reply #2 on: March 17, 2010, 09:14:05 AM »
I lean slightly towards /usr/local/var since it is a normally persistent directory on HD install distros, though I have used /var for nfs-utils.

But I agree that we need to standardize, and I am willing to go with /var.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Which var dir to use?
« Reply #3 on: March 21, 2010, 04:38:44 AM »
Can we agree on /var? If so, I will create a WIKI article.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Which var dir to use?
« Reply #4 on: March 21, 2010, 04:44:30 AM »
/var is good for me

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Which var dir to use?
« Reply #5 on: March 21, 2010, 09:24:51 AM »
I will go along with /var, but I think that the approach of keeping extensions below /usr/local and base above it has served well and I hope we otherwise stick to it.  Keeps a clean line between base vs extensions, as well as the PPI thing.  Was a challenge at first with things like kernel modules and mount.xxx helpers that were never meant to be installed there, and can't be without adjusted utilities.  But is now pretty much a matter of routine.