|
|
@ -24,4 +24,4 @@ chmod 700 "$DATADIR" || exit 2
|
|
|
|
# ZNC itself responds to SIGTERM, and reaps its children, but whatever was
|
|
|
|
# ZNC itself responds to SIGTERM, and reaps its children, but whatever was
|
|
|
|
# started via *shell module is not guaranteed to reap their children.
|
|
|
|
# started via *shell module is not guaranteed to reap their children.
|
|
|
|
# That's why using tini.
|
|
|
|
# That's why using tini.
|
|
|
|
exec /sbin/tini -- sudo --user znc /opt/znc/bin/znc --foreground --datadir "$DATADIR" "$@"
|
|
|
|
exec /sbin/tini -- su-exec znc:znc /opt/znc/bin/znc --foreground --datadir "$DATADIR" "$@"
|
|
|
|