#!/bin/sh if [ ! -f /data/config.toml ] then cp /default/config.toml /data/config.toml fi _term() { kill -TERM "$server_pid" 2>/dev/null } trap _term SIGTERM /usr/bin/zmp24 /data/config.toml & server_pid=$! wait "$server_pid"