mrrl-containers

MRRL version of container scripts
git clone https://ccx.te2000.cz/git/mrrl-containers
Log | Files | Refs

finish (357B)


      1 #!/command/execlineb
      2 fdmove -c 2 1
      3 
      4 s6-envdir env
      5 multisubstitute {
      6 	importas -i CONTAINER_NAME CONTAINER_NAME
      7 	importas -i CONTAINER_USER CONTAINER_USER
      8 }
      9 define CONTAINER_TMPFS /run/containers/${CONTAINER_NAME}.${CONTAINER_USER}
     10 
     11 foreground { rm -rf ${CONTAINER_TMPFS} }
     12 foreground { sleep .1 }  # let logger flush buffers
     13 s6-svc -a log  # rotate the log