Go to main page

CernVM-FS Init Scripts

CernVM-FS Init Scripts

 What are CernVM-FS Init Scripts?

CernVM-FS init scripts are bash scriptlets located in /etc/cvmfs/config.d/<repository name>.(conf|local). An init script for ATLAS would be at /etc/cvmfs/config.d/atlas.cern.ch.conf. Its local customization is in /etc/cvmfs/config.d/atlas.cern.ch.local.

Init scripts are repository-specific hooks. They are sourced by the CernVM-FS mount helper and by the cvmfs service. They are used to make repository-specific customizations. Such customizations can include

  • Overwriting cvmfs parameters, such as special parameters for CVMFS_HTTP_PROXY or CVMFS_SERVER_URL
  • Implementing repository_start and repository_stop functions, which will be executed when the cvmfs service starts and stops.

What is in the cvmfs-init-scripts package?

The cvmfs-init-scripts RPM package contains pre-defined CernVM-FS init scripts for some of the CERN repositories. Their main purpose is to maintain the /opt/... symlink for those non-relocatable repositories that cannot deal with being installed in /cvmfs (such as /cvmfs/grid.cern.ch).  Therefor they implement repository_start and repository_stop functions and create/remove symlinks such as
/opt/grid → /cvmfs/grid.cern.ch/...

Why is symlink X missing in the new revision of cvmfs-init-scripts?

Eventually we want to get rid of all symlinks in /opt.

Whenever there is another repository ready for the /cvmfs namespace, we remove the respective init script from the cvmfs-init-scripts package. A repository is ready for the new namespace if it's either fully relocatable in the first place or it's re-installed under /cvmfs and therefore all hardcoded paths refer to /cvmfs.