Use atd to stop dockers
This commit is contained in:
parent
78fd31e2aa
commit
fa649fe5bc
3 changed files with 11 additions and 8 deletions
|
@ -10,12 +10,12 @@ pkgs.mkShell {
|
|||
yarn
|
||||
zlib
|
||||
(
|
||||
pkgs.writeScriptBin "start-db" ''
|
||||
pkgs.writeScriptBin "start-dockers" ''
|
||||
#!${bash}/bin/bash
|
||||
|
||||
function stopdockers {
|
||||
docker stop dodona-db
|
||||
docker stop dodona-cache
|
||||
echo ${docker}/bin/docker stop dodona-db | ${at}/bin/at NOW
|
||||
echo ${docker}/bin/docker stop dodona-cache | ${at}/bin/at NOW
|
||||
}
|
||||
|
||||
trap stopdockers 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue