docker-mailserver/target/scripts/startup
Georg Lauterbach a54d774587
scripts: refactored daemon-stack.sh (#2496)
* refactored `daemon-stack.sh`

A new method was introduced to uniformaly start daemons and log output
accordingly. The methods for daemon start were renamed (plural ->
singular), therefore the adjustments in `start-mailserver.sh`.

* cleaned Fetchmail setup from `daemon-stack.sh`

Not sure why, but the Fetchmail setup was somehow happening in
`daemon-stack.sh` - this is not supposed to be the case. I relocated the
setup into `setup-stack.sh`, where it belong.

* delete old, unnecessary script in `target/bin/`

These are unused leftovers from the last commit, that relocated the
setup of Fetchmail into `setup.stack.sh`.

* corrected changedetector function name

* Apply suggestions from code review

* adjusted `debug-fetchmail` script

It is absolutely fine to source `setup-stack.sh` because sourcing the
script does not execute a single function (by desing of the script).
This way, we retain functionality.

* praise be ShellCheck

* added `log.sh` to `debug-fetchmail` as a dependency

* final cleanup

Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com>
Co-authored-by: Casper <casperklein@users.noreply.github.com>
2022-03-27 09:43:39 +02:00
..
check-stack.sh scripts: new log (#2493) 2022-03-21 07:07:52 +01:00
daemons-stack.sh scripts: refactored daemon-stack.sh (#2496) 2022-03-27 09:43:39 +02:00
fixes-stack.sh scripts: new log (#2493) 2022-03-21 07:07:52 +01:00
misc-stack.sh scripts: new log (#2493) 2022-03-21 07:07:52 +01:00
setup-stack.sh scripts: refactored daemon-stack.sh (#2496) 2022-03-27 09:43:39 +02:00