forked from tgbyte/docker-strongswan
-
Notifications
You must be signed in to change notification settings - Fork 1
/
supervisord.conf
26 lines (22 loc) · 659 Bytes
/
supervisord.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[supervisord]
nodaemon=true
[program:xl2tpd]
command=/usr/sbin/xl2tpd -c /etc/xl2tpd/xl2tpd.conf -D
redirect_stderr=true
numprocs=1
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[program:ipsec]
command=ipsec start --nofork
redirect_stderr=true
numprocs=1
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
[eventlistener:ipsec_exit]
command=/bin/bash -c "echo READY; while read line; do kill $PPID; sleep 300; kill -9 $PPID; done"
process_name=ipsec
events=PROCESS_STATE_FATAL
[eventlistener:xl2tpd_exit]
command=/bin/bash -c "echo READY; while read line; do kill $PPID; sleep 300; kill -9 $PPID; done"
process_name=xl2tpd
events=PROCESS_STATE_FATAL