mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-03 00:07:05 +00:00
add a restart command
This commit is contained in:
parent
54a3bd100c
commit
6d25bc47bf
@ -222,6 +222,12 @@ vlx_status() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vlx_restart() {
|
||||||
|
vlx_guess "$@" || return 1
|
||||||
|
echo lxc --project "$LX_PROJECT" restart "$LX_INST"
|
||||||
|
lxc --project "$LX_PROJECT" restart "$LX_INST"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage:"
|
echo "Usage:"
|
||||||
@ -238,6 +244,7 @@ usage() {
|
|||||||
echo " start"
|
echo " start"
|
||||||
echo " stop"
|
echo " stop"
|
||||||
echo " delete|destroy"
|
echo " delete|destroy"
|
||||||
|
echo " restart"
|
||||||
echo " status"
|
echo " status"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,4 +262,3 @@ if [ ! "$(type -t $handler)" = "function" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
$handler "$@"
|
$handler "$@"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user