[Unit] Description=FreeSwitch Telco Stack Requires=network-online.target After=network-online.target auditd.service [Service] Type=forking User=freeswitch Group=daemon # Make sure the directories exist and are writable by $User RuntimeDirectory=freeswitch LogsDirectory=freeswitch # see /usr/share/bbb-apps-akka/conf/application.conf::/voiceConf/recordPath StateDirectory=freeswitch freeswitch/tls freeswitch/meetings WorkingDirectory=/run/freeswitch PIDFile=/run/freeswitch/freeswitch.pid # Do not let the brain damaged systemd chomp any output StandardOutput=file:/var/log/svc-freeswitch.log StandardError=inherit Environment="DAEMON_OPTS=-nonat" EnvironmentFile=-/etc/default/freeswitch ExecCondition=/usr/sbin/freeswitch-init --check ExecStart=/usr/bin/freeswitch -ncwait ${DAEMON_OPTS} TimeoutSec=45s Restart=always LimitCORE=infinity LimitNOFILE=64000 LimitNPROC=8000 LimitSTACK=256000 LimitRTPRIO=infinity LimitRTTIME=infinity # If NOT on bare metal alias global zone, these settings would prevent starting # the service. So disabled since only dinosaurs run services in a GZ. #IOSchedulingClass=realtime #IOSchedulingPriority=2 #CPUSchedulingPolicy=rr #CPUSchedulingPriority=89 Nice=-16 #UMask=0007 #NoNewPrivileges=false [Install] WantedBy=multi-user.target