Last change
on this file since 3885 was 3621, checked in by Bruno Cornec, 8 years ago |
New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.
|
-
Property svn:executable
set to
*
|
File size:
363 bytes
|
Rev | Line | |
---|
[2725] | 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"
|
---|
[3621] | 9 | rm -rf logdir
|
---|
[2725] | 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.