Compare commits
No commits in common. "e2894c0aae70d90e8e6b1621db79bc15017669e1" and "5d2ad0433675894634e4bc55e6643c0c4835ce0f" have entirely different histories.
e2894c0aae
...
5d2ad04336
2 changed files with 0 additions and 34 deletions
|
@ -34,7 +34,6 @@ RUN install -dm 2750 -o root -g root /var/lib/monit
|
||||||
COPY --from=build /etc/monitrc /etc/monitrc
|
COPY --from=build /etc/monitrc /etc/monitrc
|
||||||
COPY ./nsupdate.sh /usr/local/bin/nsupdate
|
COPY ./nsupdate.sh /usr/local/bin/nsupdate
|
||||||
COPY ./whatsmyip6.sh /usr/local/bin/whatsmyip6
|
COPY ./whatsmyip6.sh /usr/local/bin/whatsmyip6
|
||||||
COPY ./syslogize.sh /usr/local/bin/syslogize
|
|
||||||
COPY ./zeroconf.sh /usr/local/bin/zeroconf
|
COPY ./zeroconf.sh /usr/local/bin/zeroconf
|
||||||
COPY ./zeroconf.conf /etc/zeroconf.conf
|
COPY ./zeroconf.conf /etc/zeroconf.conf
|
||||||
|
|
||||||
|
|
33
syslogize.sh
33
syslogize.sh
|
@ -1,33 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
# A wrapper for programs that can't write to syslog. Output and error
|
|
||||||
# are sent to syslog.
|
|
||||||
#
|
|
||||||
# Use LOGGER environment variable to pass options to `logger`. They'll
|
|
||||||
# probably be system-dependent, so handle with care.
|
|
||||||
#
|
|
||||||
# Usage:
|
|
||||||
#
|
|
||||||
# LOGGER="-t program" syslogize program -o -p --tions argu ments
|
|
||||||
#
|
|
||||||
# daemonize /usr/local/bin/syslogize program
|
|
||||||
|
|
||||||
if test $# -eq 0 ; then
|
|
||||||
grep "^#" $0 | grep -v /bin/sh | sed -re "s/^#\s*//" >&2
|
|
||||||
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
LOGGER="${LOGGER:--t $1}"
|
|
||||||
|
|
||||||
propagate_signal () {
|
|
||||||
logger ${LOGGER} "Received $1 signal"
|
|
||||||
jobs -p | xargs kill -$1
|
|
||||||
}
|
|
||||||
|
|
||||||
for signal in HUP INT QUIT USR1 USR2 TERM; do
|
|
||||||
trap "propagate_signal ${signal}" ${signal}
|
|
||||||
done
|
|
||||||
|
|
||||||
$@ 2>&1 | logger ${LOGGER} &
|
|
||||||
|
|
||||||
wait $!
|
|
Loading…
Reference in a new issue