pkg/kamailio/alpine_docker: Added docker packaging scripts
[sip-router] / pkg / kamailio / alpine_docker / entrypoint.sh
1 #!/bin/sh
2 #
3 #  Created by Sergey Safarov <s.safarov@gmail.com>
4 #
5
6 SHM_MEMORY=${SHM_MEMORY:-64}
7 PKG_MEMORY=${PKG_MEMORY:-8}
8 trap 'kill -SIGTERM "$pid"' SIGTERM
9
10 /usr/sbin/kamailio -DD -E -m $SHM_MEMORY -M $PKG_MEMORY &
11 pid="$!"
12
13 wait $pid
14 exit 0