21 lines
245 B
Bash
21 lines
245 B
Bash
|
#!/bin/ash
|
||
|
|
||
|
echo "Start container with parameter : $@"
|
||
|
|
||
|
trap sig_term SIGTERM
|
||
|
|
||
|
sig_term() {
|
||
|
echo "CATCH SIGTERM"
|
||
|
pkill -SIGTERM dhcpd
|
||
|
pkill -SIGTERM radvd
|
||
|
wait
|
||
|
exit 0
|
||
|
}
|
||
|
|
||
|
# Execute paramater.
|
||
|
exec "$@"
|
||
|
|
||
|
dhcpd -6 -f $DHCPIF &
|
||
|
radvd -n &
|
||
|
wait
|