Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SINGCVMFS_LOGDIR #102

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading