Skip to content

Commit

Permalink
Merge pull request #102 from fwyzard/add_SINGCVMFS_LOGDIR
Browse files Browse the repository at this point in the history
Add `SINGCVMFS_LOGDIR`
  • Loading branch information
DrDaveD authored Nov 14, 2024
2 parents d0f671f + b716f78 commit 672ceed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
- Add the variable SINGCVMFS_LOGDIR to override the location of the
cvmfs logs.

cvmfsexec-4.42 - 24 September 2024
- Add rhel9-aarch64 and rhel9-ppc64le machine types.
- In makedist help, split machine types from different distributions
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,7 @@ $ truncate -s 6G scratch.img
$ mkdir -p tmp/shared
$ mkfs.ext3 -F -O ^has_journal -d tmp scratch.img
```

By default the cvmfs logs are written to a top-level `log` directory, alongside
the top-level `dist` directory. The variable `SINGCVMFS_LOGDIR` can be used to
write them to a different directory, which will be created if it doesn't exist.
7 changes: 6 additions & 1 deletion singcvmfs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Optional environment variables:
SINGCVMFS_OPTSFILE CVMFS options file (default.local)
- should set at least CVMFS_HTTP_PROXY
SINGCVMFS_SINGOPTS Extra singularity command options
SINGCVMFS_LOGDIR Directory for the cvmfs logs
SINGCVMFS_LOGLEVEL Set to debug to enable cvmfs debugging
!EOF!
exit 1
Expand Down Expand Up @@ -103,7 +104,11 @@ fi

echo "CVMFS_NFILES=`ulimit -Hn`" >etc/cvmfs/default.d/00-nfiles.conf
echo "CVMFS_USYSLOG=/var/log/cvmfs/@[email protected]" >etc/cvmfs/default.d/00-usyslog.conf
LOGDIR=$HERE/log
if [ -n "$SINGCVMFS_LOGDIR" ]; then
LOGDIR=$SINGCVMFS_LOGDIR
else
LOGDIR=$HERE/log
fi
mkdir -p $LOGDIR
SINGULARITY_BINDPATH="$SINGULARITY_BINDPATH,$LOGDIR:/var/log/cvmfs"

Expand Down

0 comments on commit 672ceed

Please sign in to comment.