Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include geodns-logs in new archives/packages
- Loading branch information
Showing
5 changed files
with
51 additions
and
16 deletions.
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
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
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,4 @@ | ||
#!/bin/sh | ||
mkdir -p /var/log/geodns-logs | ||
chown nobody /var/log/geodns-logs | ||
exec setuidgid nobody multilog s10000000 n3 /var/log/geodns-logs |
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,17 @@ | ||
#!/bin/sh | ||
exec 2>&1 | ||
sleep 1 # just in case we spin for some reason | ||
|
||
cd /opt/geodns | ||
|
||
ulimit -n 8192 | ||
|
||
ID="" | ||
if [ -e env/ID ]; then | ||
ID=`head -1 env/ID` | ||
if [ ! -z "$ID" ]; then | ||
ID="--identifier=$ID" | ||
fi | ||
fi | ||
|
||
exec softlimit -d200000000 envdir ./env setuidgid nobody ./geodns-logs $ID /var/log/geodns/queries.log |