iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mostly improvements, wip
[distro-setup]
/
mailtest-check
diff --git
a/mailtest-check
b/mailtest-check
index 034dfc6b45a7d6c72413fc2a70537fe1ca7d5182..856d774d32a82995fa93f31efdc17a46e9218ab5 100755
(executable)
--- a/
mailtest-check
+++ b/
mailtest-check
@@
-40,7
+40,7
@@
e() { $int || return 0; printf "mailtest-check: %s\n" "$*"; }
getspamdpid() {
if [[ ! $spamdpid || ! -d /proc/$spamdpid ]]; then
# try twice in case we are restarting, it happens.
getspamdpid() {
if [[ ! $spamdpid || ! -d /proc/$spamdpid ]]; then
# try twice in case we are restarting, it happens.
- for
i in 1 2
; do
+ for
(( i=0; i<2; i++ ))
; do
spamdpid=$(systemctl show --property MainPID --value spamassassin | sed 's/^[10]$//' ||:)
if [[ $spamdpid ]]; then
break
spamdpid=$(systemctl show --property MainPID --value spamassassin | sed 's/^[10]$//' ||:)
if [[ $spamdpid ]]; then
break