Last active
May 27, 2020 01:11
-
-
Save davehorton/fc586696c58dc65d9bef9d5389d3120e to your computer and use it in GitHub Desktop.
example systemd file for rtpengine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# more /etc/systemd/system/rtpengine.service | |
[Unit] | |
Description=rtpengine | |
After=syslog.target network.target local-fs.target | |
[Service] | |
; service | |
Type=forking | |
ExecStart=/usr/local/bin/rtpengine \ | |
--interface 10.132.0.24!35.195.208.181 \ | |
--listen-ng=22222 \ | |
--listen-udp=12222 \ | |
--listen-cli=127.0.0.1:9900 \ | |
--pidfile /var/run/rtpengine.pid \ | |
--port-min 40000 \ | |
--port-max 60000 \ | |
--recording-dir /tmp \ | |
--recording-method pcap \ | |
--recording-format eth \ | |
--delete-delay 1 \ | |
--homer=10.132.0.14:9060 \ | |
--homer-protocol=udp \ | |
--homer-id=120 \ | |
--log-level 6 | |
PIDFile=/var/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment