Last change
on this file since 3576 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
359 bytes
|
Rev | Line | |
---|
[3320] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | user=logger
|
---|
| 4 |
|
---|
| 5 | logdir="/var/log/service/`(cd ..;basename $PWD)`"
|
---|
| 6 | mkdir -p "$logdir" 2>/dev/null
|
---|
| 7 | chown -R "$user": "$logdir"
|
---|
| 8 | chmod -R go-rwxst,u+rwX "$logdir"
|
---|
| 9 | rm logdir
|
---|
| 10 | ln -s "$logdir" logdir
|
---|
| 11 |
|
---|
| 12 | # make this dir accessible to logger
|
---|
| 13 | chmod a+rX .
|
---|
| 14 |
|
---|
| 15 | exec >/dev/null
|
---|
| 16 | exec 2>&1
|
---|
| 17 | exec \
|
---|
| 18 | env - PATH="$PATH" \
|
---|
| 19 | softlimit \
|
---|
| 20 | setuidgid "$user" \
|
---|
| 21 | svlogd -tt "$logdir"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.