Skip to content

Commit 6b7bc1a

Browse files
committed
interact with supervisorctl
1 parent 92c1c81 commit 6b7bc1a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

mailctl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ TIMEOUT=3600 # a lot of time for a graceful container stop
88

99
# --------------------------------------------------------------------
1010

11-
VER=0.13.0
11+
VER=0.14.0
1212

1313
set -ueo pipefail
1414

@@ -177,6 +177,11 @@ case "${1:-}" in
177177
docker exec -it "$CONTAINER" bash
178178
;;
179179

180+
super*) # Interact with supervisorctl
181+
shift
182+
docker exec -it "$CONTAINER" supervisorctl "$@"
183+
;;
184+
180185
update-c*) # Check for container package updates
181186
docker exec -it "$CONTAINER" bash -c 'apt update && echo && apt list --upgradable'
182187
;;
@@ -215,6 +220,7 @@ case "${1:-}" in
215220
$APP postconf Show postfix configuration
216221
$APP logs [-f] Show logs. Use -f to 'follow' the logs
217222
$APP login Run container shell
223+
$APP supervisor Interact with supervisorctl
218224
$APP update-check Check for container package updates
219225
$APP update-packages Update container packages
220226
$APP versions Show package versions

mailctl-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ _mailctl() {
22
local cur prev options
33
cur=${COMP_WORDS[COMP_CWORD]}
44
prev=${COMP_WORDS[COMP_CWORD-1]}
5-
options="status start stop restart setup queue flush view delete fail2ban ports postconf logs login update-check update-packages versions"
5+
options="status start stop restart setup queue flush view delete fail2ban ports postconf logs login supervisor update-check update-packages versions"
66
if [ $COMP_CWORD -eq 1 ]; then
77
COMPREPLY=( $(compgen -W "${options[@]}" -- $cur) )
88
elif [ $COMP_CWORD -eq 2 ]; then

0 commit comments

Comments
 (0)