• Stanislav Kinsburskiy's avatar
    scripts: save and restore target mount for autofs service · 40682f15
    Stanislav Kinsburskiy authored
    This patch slightly changes the logic on systemd autofs service restart script:
    
    1) It tries to bind-mount the mountpoint on top of autofs (if any) somewhere
    before service restart, and replace new mount point on top of autofs (if any)
    by the saved one after.
    
    2) It doesn't exit in case of error, trying to recover as much as
    possible in case of failure instead and then continue services restarting.
    
    The reason for introducing new logic is that there can be some other,
    stateful, file system on top of autofs (say, tmpfs), which state was restore
    during migration.
    With current script this state will be lost, while this patch allows to
    preserve restored mount point after service restart.
    Signed-off-by: 's avatarStanislav Kinsburskiy <skinsbursky@virtuozzo.com>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    40682f15
Name
Last commit
Last update
..
build Loading commit data...
nmk Loading commit data...
crit-setup.py Loading commit data...
fake-restore.sh Loading commit data...
feature-tests.mak Loading commit data...
flake8.cfg Loading commit data...
gen-offsets.sh Loading commit data...
magic-gen.py Loading commit data...
protobuf-gen.sh Loading commit data...
systemd-autofs-restart.sh Loading commit data...
tmp-files.sh Loading commit data...
travis-tests Loading commit data...