Ajout : fonction restart
This commit is contained in:
parent
8b75035416
commit
7048212823
1 changed files with 5 additions and 0 deletions
|
@ -65,6 +65,11 @@ stop() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
restart() {
|
||||||
|
stop
|
||||||
|
start
|
||||||
|
}
|
||||||
|
|
||||||
# Argument parsing
|
# Argument parsing
|
||||||
set -e; trap 'set +e; error "$error" "$?"' EXIT
|
set -e; trap 'set +e; error "$error" "$?"' EXIT
|
||||||
error="You must give an argument"
|
error="You must give an argument"
|
||||||
|
|
Loading…
Reference in a new issue