Magellan Linux

Annotation of /trunk/mkinitrd-magellan/busybox/examples/var_service/ftpd/log/run

Parent Directory Parent Directory | Revision Log Revision Log


Revision 984 - (hide annotations) (download)
Sun May 30 11:32:42 2010 UTC (14 years ago) by niro
File size: 359 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
1 niro 984 #!/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"

Properties

Name Value
svn:executable *