17 lines
230 B
Bash
17 lines
230 B
Bash
#!/usr/bin/env sh
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
|
|
atticd "$@" &
|
|
PID=$!
|
|
|
|
if [ -f /etc/attic/post-start.sh ]; then
|
|
# shellcheck disable=SC1091
|
|
. /etc/attic/post-start.sh
|
|
fi
|
|
|
|
trap 'kill -KILL "$PID"' INT TERM
|
|
wait "$PID"
|
|
exit $?
|