mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-10-04 03:13:58 +00:00
26 lines
610 B
Desktop File
26 lines
610 B
Desktop File
|
|
[Unit]
|
|
Description=drachtio
|
|
After=syslog.target network.target local-fs.target
|
|
|
|
[Service]
|
|
; service
|
|
Type=forking
|
|
ExecStartPre=/bin/sh -c 'systemctl set-environment LOCAL_IP=`curl -s http://169.254.169.254/latest/meta-data/local-ipv4`'
|
|
ExecStart=/usr/local/bin/drachtio --daemon -f /etc/drachtio-5070.conf.xml --contact sip:${LOCAL_IP}:5070;transport=udp,tcp --address 0.0.0.0 --port 9023
|
|
TimeoutSec=15s
|
|
Restart=always
|
|
; exec
|
|
User=root
|
|
Group=daemon
|
|
LimitCORE=infinity
|
|
LimitNOFILE=100000
|
|
LimitNPROC=60000
|
|
;LimitSTACK=240
|
|
LimitRTPRIO=infinity
|
|
LimitRTTIME=7000000
|
|
UMask=0007
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|