I have a similar problem where I need to mount a cifs file system BEFOREI 
can mount an s3ql FS because the s3ql fs lives on the cifs fs

If I run s3ql mount AFTER booting , it works 

but during boot it complains .. 

cat /var/log/syslog | grep s3qlXXXX
...
Sep 28 13:51:24 uvaultcontrol s3qlXXXX: ZZZZZZZZZZZZZZZZZZZZZZZ START
Sep 28 13:51:24 uvaultcontrol s3qlXXXX: starting fsck.s3ql --batch 
local:///mnt/lenovo/1tera/S3QLFS/
Sep 28 13:52:00 uvaultcontrol s3qlXXXX: '/mnt/lenovo/1tera/S3QLFS' does not 
exist

here is the s3ql.conf file ..

start on (filesystem and net-device-up IFACE=eth0)
stop on runlevel [016]

# env BUCKET="s3://mybucket"
# env MOUNTPOINT="/mnt/s3/bucket"
env BUCKET="local:///mnt/lenovo/1tera/S3QLFS/"
env MOUNTPOINT="/mnt/s3qlfs"

expect stop

script
    # Redirect stdout and stderr into the system log
        DIR=$(mktemp -d)
        mkfifo "$DIR/LOG_FIFO"
        logger -t s3qlXXXX -p local0.info < "$DIR/LOG_FIFO" &
        exec > "$DIR/LOG_FIFO"
        exec 2>&1
        rm -rf "$DIR"

    # Check and mount file system
        echo ZZZZZZZZZZZZZZZZZZZZZZZ START
        echo "starting fsck.s3ql --batch $BUCKET"
        fsck.s3ql --batch "$BUCKET"
        exec mount.s3ql --upstart --allow-other "$BUCKET" "$MOUNTPOINT"
end script

pre-stop script
        echo "unmounting $MOUNTPOINT"
        umount.s3ql "$MOUNTPOINT"
end script


I have put the start script in/etc/init/s3ql.conf

## how do I make s3ql wait untill the mounts in fstab have completed ?

-- 
You received this message because you are subscribed to the Google Groups 
"s3ql" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to