-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use a named pipe and --log-file to output logs
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Force Unix style line endings for files that will be copied into the Docker image | ||
*.sh text eol=lf | ||
|
||
# Auto detect text files and perform LF normalization on the rest | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# create a pipe for svnserve logs | ||
rm -f /var/svn/svnlogs | ||
mkfifo /var/svn/svnlogs | ||
|
||
# run the SVN service in the background | ||
/usr/bin/svnserve --daemon --root /var/opt/svn --log-file=/var/svn/svnlogs & | ||
# remember the PID of the SVN server | ||
SVNSERVE_PID=$! | ||
|
||
# redirect svnserve logs to stdout | ||
cat /var/svn/svnlogs | ||
|
||
# stop the SVN server running in the background | ||
kill -s SIGTERM $SVNSERVE_PID |