[info=155ed9a8dbb3deabb9ffb9f812915616]
OBS-URL: https://build.opensuse.org/package/show/devel:BCI:Tumbleweed/postfix-image?expand=0&rev=10
This commit is contained in:
parent
4740c3fdc2
commit
c09abcacb8
@ -358,7 +358,7 @@ configure_postfix() {
|
|||||||
|
|
||||||
terminate() {
|
terminate() {
|
||||||
base=$(basename "$1")
|
base=$(basename "$1")
|
||||||
pid=$(/bin/pidof "$base")
|
pid=$(/usr/bin/ps -aux | /usr/bin/grep "$base" | /usr/bin/grep -v grep | /usr/bin/awk '{print $2}' | /usr/bin/tr '\n' ' ')
|
||||||
|
|
||||||
if [ -n "$pid" ]; then
|
if [ -n "$pid" ]; then
|
||||||
echo "Terminating $base..."
|
echo "Terminating $base..."
|
||||||
@ -379,15 +379,15 @@ stop_postfix() {
|
|||||||
typeset -i sec=$1
|
typeset -i sec=$1
|
||||||
typeset -i ms=$((sec*100))
|
typeset -i ms=$((sec*100))
|
||||||
|
|
||||||
( while ! pidof qmgr > /dev/null 2>&1 ; do
|
( while ! (ps -aux | grep qmgr | grep -v grep | awk '{print $2}' | tr '\n' ' ') > /dev/null 2>&1; do
|
||||||
((ms-- <= 0)) && break
|
((ms-- <= 0)) && break
|
||||||
usleep 10000
|
usleep 10000
|
||||||
done
|
done
|
||||||
exec postfix flush
|
exec postfix flush
|
||||||
) > /dev/null 2>&1 &
|
) > /dev/null 2>&1 &
|
||||||
|
|
||||||
postfix stop
|
postfix stop
|
||||||
terminate /usr/sbin/syslogd
|
terminate /usr/sbin/rsyslogd
|
||||||
}
|
}
|
||||||
|
|
||||||
stop_daemons() {
|
stop_daemons() {
|
||||||
@ -397,7 +397,13 @@ stop_daemons() {
|
|||||||
start_daemons() {
|
start_daemons() {
|
||||||
# Don't start syslogd in background while starting it in the background...
|
# Don't start syslogd in background while starting it in the background...
|
||||||
# Logging to stdout does not work else.
|
# Logging to stdout does not work else.
|
||||||
/usr/sbin/syslogd -n -S -O - "$@"
|
echo '# rsyslog configuration file to log to stdout
|
||||||
|
module(load="imuxsock") # provides support for local system logging (e.g. via logger command)
|
||||||
|
|
||||||
|
*.* action(type="omfile" file="/var/log/rsyslog.log")' > /entrypoint/rsyslog-stdout.conf
|
||||||
|
/usr/sbin/rsyslogd -f /entrypoint/rsyslog-stdout.conf -i /var/run/rsyslogd-stdout.pid
|
||||||
|
|
||||||
|
"$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 9 07:32:37 UTC 2024 - Priyanka Saggu <priyanka.saggu@suse.com>
|
||||||
|
|
||||||
|
- fix SLE entrypoint scripts
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 8 19:28:10 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
Thu Aug 8 19:28:10 UTC 2024 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user