[lxc-users] Freeswitch refuses to start in Debian Jessie

Rajil Saraswat rajil.s at gmail.com
Sun Jan 7 16:35:20 UTC 2018


Hello,

I am trying to setup freeswitch in Debian Jessie. The host is Gentoo
linux running lxc-2.0.9

Error is,

# systemctl status freeswitch.service
● freeswitch.service - freeswitch
   Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled)
   Active: failed (Result: start-limit) since Sun 2018-01-07 16:28:38
UTC; 1s ago
  Process: 7900 ExecStartPre=/bin/mkdir -p /var/run/freeswitch/
(code=exited, status=214/SETSCHEDULER)

Jan 07 16:28:38 jessie systemd[1]: Failed to start freeswitch.
Jan 07 16:28:38 jessie systemd[1]: Unit freeswitch.service entered
failed state.
Jan 07 16:28:38 jessie systemd[1]: freeswitch.service holdoff time over,
scheduling restart.
Jan 07 16:28:38 jessie systemd[1]: Stopping freeswitch...
Jan 07 16:28:38 jessie systemd[1]: Starting freeswitch...
Jan 07 16:28:38 jessie systemd[1]: freeswitch.service start request
repeated too quickly, refusing to start.
Jan 07 16:28:38 jessie systemd[1]: Failed to start freeswitch.
Jan 07 16:28:38 jessie systemd[1]: Unit freeswitch.service entered
failed state.

#journalctl -xe

Jan 07 16:28:38 jessie systemd[1]: Starting freeswitch...
-- Subject: Unit freeswitch.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit freeswitch.service has begun starting up.
Jan 07 16:28:38 jessie systemd[7900]: Failed at step SETSCHEDULER
spawning /bin/mkdir: Operation not permitted
-- Subject: Process /bin/mkdir could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /bin/mkdir could not be executed and failed.
-- 
-- The error number returned while executing this process is 1.
Jan 07 16:28:38 jessie systemd[1]: freeswitch.service: control process
exited, code=exited status=214
Jan 07 16:28:38 jessie systemd[1]: Failed to start freeswitch.
-- Subject: Unit freeswitch.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit freeswitch.service has failed.
-- 
-- The result is failed.

The startup script is,


# cat /lib/systemd/system/freeswitch.service

[Unit]
Description=freeswitch
After=syslog.target network.target local-fs.target postgresql.service

[Service]
; service
Type=forking
PIDFile=/run/freeswitch/freeswitch.pid
Environment="DAEMON_OPTS=-nonat"
EnvironmentFile=-/etc/default/freeswitch
ExecStartPre=/bin/mkdir -p /var/run/freeswitch/
ExecStartPre=/bin/chown -R www-data:www-data /var/run/freeswitch/
ExecStart=/usr/bin/freeswitch -u www-data -g www-data -ncwait $DAEMON_OPTS
TimeoutSec=45s
Restart=always
; exec
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

[Install]
WantedBy=multi-user.target

Any idea how to fix this?

Thanks



More information about the lxc-users mailing list