hoge# cd /usr/tmp hoge# tar zxvf delegate7.9.1.tar.gz hoge# cd /delegate7.9.1/src hoge# make |
hoge# cp /usr/tmp/delegate7.9.1/src/delegated /usr/local/sbin/ |
delegate:*:65530:65530::0:0:DeleGate:/nonexistent:/sbin/nologin |
delegate:*:65530:delegate |
hoge# chown -R delegate:delegate /usr/local/sbin/delegated hoge# chmod 700 /usr/local/sbin/delegated |
hoge# mkdir /usr/home/delegate hoge# mkdir /usr/home/delegate/cache hoge# mkdir /usr/home/delegate/log hoge# chown -R delegate:delegate /usr/home/delegated hoge# chown -R delegate:delegate /usr/home/delegate/cache hoge# chown -R delegate:delegate /usr/home/delegate/log |
#!/bin/sh if [ -f /usr/local/sbin/delegated ]; then /usr/local/sbin/delegated -P8080 \ MANAGER=root@hoge.foo.jp \ OWNER="delegate/delegate" \ DGROOT=/usr/home/delegate \ LOGDIR=/usr/home/delegate/log \ CACHEDIR=/usr/home/delegate/cache \ SERVER=http \ RELIABLE=192.168.0.[0-254] \ EXPIRE=7d CRON="5 5 * * * -expire 7d" \ echo " delegated started. " fi |
/home/delegate/log/8080.http 644 10 100 $M1D0 Z /home/delegate/log/8080 644 10 100 $M1D0 Z /home/delegate/log/errors.log 644 10 100 $M1D0 Z /home/delegate/log/expire.log 644 10 100 $M1D0 Z |