Created
June 21, 2021 13:15
-
-
Save saisyam/e6af8d064dd004c6e66f6d9f2451a59f to your computer and use it in GitHub Desktop.
Freeswitch Service
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
[Unit] | |
Description=freeswitch | |
Wants=network-online.target | |
Requires=syslog.socket network.target local-fs.target | |
After=syslog.socket network.target network-online.target local-fs.target | |
[Service] | |
Type=forking | |
Environment="DAEMON_OPTS=-nonat" | |
EnvironmentFile=-/etc/default/freeswitch | |
ExecStartPre=/bin/chown -R freeswitch:freeswitch /usr/local/freeswitch | |
ExecStart=/usr/local/freeswitch/bin/freeswitch -u freeswitch -g freeswitch -ncwait $DAEMON_OPTS | |
TimeoutSec=45s | |
Restart=always | |
RestartSec=90 | |
StartLimitInterval=0 | |
StartLimitBurst=6 | |
User=root | |
Group=daemon | |
LimitCORE=infinity | |
LimitNOFILE=100000 | |
LimitNPROC=60000 | |
LimitSTACK=250000 | |
LimitRTPRIO=infinity | |
LimitRTTIME=infinity | |
IOSchedulingClass=realtime | |
IOSchedulingPriority=2 | |
CPUSchedulingPolicy=rr | |
CPUSchedulingPriority=89 | |
UMask=0007 | |
NoNewPrivileges=false | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment