mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2025-12-19 09:07:44 +00:00
* initial changes for proxmox support * proxmox packer updates * terraform template for Proxmox jambonz-mini * update jambonz-mini to 0.8.3-3
49 lines
1.3 KiB
Desktop File
49 lines
1.3 KiB
Desktop File
|
|
[Unit]
|
|
Description=rtpengine
|
|
After=syslog.target network.target local-fs.target
|
|
|
|
[Service]
|
|
; service
|
|
Type=forking
|
|
Environment="LD_LIBRARY_PATH=/usr/local/lib/"
|
|
ExecStartPre=/bin/sh -c 'systemctl set-environment LOCAL_IP=`curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip`'
|
|
ExecStartPre=/bin/sh -c 'systemctl set-environment PUBLIC_IP=`curl -s -H "Metadata-Flavor: Google" http://metadata/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip`'
|
|
ExecStartPre=echo 'del 42' > /proc/rtpengine/control
|
|
ExecStart=/usr/local/bin/rtpengine \
|
|
--interface private/${LOCAL_IP} \
|
|
--interface public/${LOCAL_IP}!${PUBLIC_IP} \
|
|
--listen-ng=22222 \
|
|
--listen-http=8080 \
|
|
--listen-udp=12222 \
|
|
--dtmf-log-dest=127.0.0.1:22223 \
|
|
--listen-cli=127.0.0.1:9900 \
|
|
--table=42 \
|
|
--pidfile /run/rtpengine.pid \
|
|
--port-min 40000 \
|
|
--port-max 60000 \
|
|
--recording-dir /var/spool/recording \
|
|
--recording-method proc \
|
|
--log-level 5 \
|
|
--delete-delay 0
|
|
PIDFile=/run/rtpengine.pid
|
|
TimeoutSec=15s
|
|
Restart=always
|
|
; exec
|
|
User=root
|
|
Group=daemon
|
|
LimitCORE=infinity
|
|
LimitNOFILE=100000
|
|
LimitNPROC=60000
|
|
;LimitSTACK=240
|
|
LimitRTPRIO=infinity
|
|
LimitRTTIME=7000000
|
|
IOSchedulingClass=realtime
|
|
IOSchedulingPriority=2
|
|
CPUSchedulingPolicy=rr
|
|
CPUSchedulingPriority=89
|
|
UMask=0007
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|