Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux freeswitch系统启动不一致_Linux_Admin_Centos7_Freeswitch_Systemd - Fatal编程技术网

Linux freeswitch系统启动不一致

Linux freeswitch系统启动不一致,linux,admin,centos7,freeswitch,systemd,Linux,Admin,Centos7,Freeswitch,Systemd,我在从systemd运行freeswitch时遇到两个问题: 编辑2-我已将慢速启动问题移到此处(),尽管它们可能相关,但作为一个独立问题可能很好 编辑-我注意到了其他一些事情。在运行终端输出时,请查看从终端输出捕获的下一行。差距是4分钟,但在10分钟之前就已经存在了。我注意到了这一点,因为我试图找出端口8021接受fs_cli连接需要几分钟的原因。为什么会发生这种情况?我以前从未遇到过这种情况,我安装了很多FS盒。这在1.7版和今天的1.6版上都有相同的功能 我有时会启动两个进程。以下是发生此

我在从systemd运行freeswitch时遇到两个问题:

编辑2-我已将慢速启动问题移到此处(),尽管它们可能相关,但作为一个独立问题可能很好

编辑-我注意到了其他一些事情。在运行终端输出时,请查看从终端输出捕获的下一行。差距是4分钟,但在10分钟之前就已经存在了。我注意到了这一点,因为我试图找出端口8021接受fs_cli连接需要几分钟的原因。为什么会发生这种情况?我以前从未遇到过这种情况,我安装了很多FS盒。这在1.7版和今天的1.6版上都有相同的功能

  • 我有时会启动两个进程。以下是发生此类事件后我的状态行:
  • 有两个进程正在运行

  • PID文件有时写得不够快,systemd进程无法读取它,但当我看到这个文件时(无论我运行命令的速度有多快),它总是在我执行命令时出现:
  • 现在,在(2)中,一切似乎都正常,我可以使用

    systemctl停止自由开关

    没有任何问题,但在(1)中,它似乎什么都没做

    我想知道这两者是否有关联,freeswitch正在向systemd报告程序在实际运行之前就已经运行了。然后systemd要么启动另一个进程,要么(有时)不启动

    有人能提供一些建议吗?我曾尝试发送freeswitch用户列表,但尽管已注册,我还是无法在列表中显示任何电子邮件(但这是另一个问题)

    *更新* 如果我删除-ncwait,似乎可以改善双进程启动,但我仍然收到无法读取PID警告,因此我仍然确定存在问题,可能是在计时(?)附近

    我在Centos 7.1上,我的freeswitch版本是

    这是我的freeswitch.service文件(有些东西已经被注释掉了,直到我了解它们在做什么以及它们可能产生的任何副作用):


    在当前主分支中,从
    debian/
    目录获取两个文件:

    freeswitch-systemd.freeswitch.service
    ——应为
    /lib/systemd/system/freeswitch.service

    freeswitch-systemd.freeswitch.tmpfile
    ——应为
    /usr/lib/tmpfiles.d/freeswitch.conf


    您可能需要调整路径,或者构建FreeSWITCH以使用标准Debian路径。

    谢谢,我本来就有这样的路径,但为了确保安全,我会再做一次。我还在原始问题中添加了一个编辑,其中包含一些其他信息,这些信息可能相关,也可能不相关,但仍然很奇怪。我在OP的编辑2中衍生出了一个可能相关,也可能不相关的问题。我看到你在FS列表中很活跃,但尽管尝试了很多次,我还从未成功地将问题发送到那里。如果你能点亮任何一盏灯,我将不胜感激。谢谢。由于最近的一些垃圾邮件攻击,邮件列表已被预调节。写信给我,ssinyagin@gmail.com让我们看看我们能做些什么。@YumYumYum每个人都知道:)我已经制作了一个centos 6.7盒子,现在正在它上运行FS 1.6,非常开心。无论上面是什么,它看起来都与centos 7.1相关。我有两个并排的盒子,所以如果有人能给我一些东西在7.1上用FS 1.6或1.7进行测试,我很乐意这样做,但我现在还是坚持使用C6.7。
    2015-10-23 12:57:35.280984 [DEBUG] switch_scheduler.c:249 Added task 1 heartbeat (core) to run at 1445601455
    2015-10-23 12:57:35.281046 [DEBUG] switch_scheduler.c:249 Added task 2 check_ip (core) to run at 1445601455
    2015-10-23 13:01:31.100892 [NOTICE] switch_core.c:1386 Created ip list rfc6598.auto default (deny)
    
    # systemctl status freeswitch -l
    freeswitch.service - freeswitch
       Loaded: loaded (/etc/systemd/system/multi-user.target.wants/freeswitch.service)
       Active: activating (start) since Fri 2015-10-23 01:31:53 BST; 18s ago
     Main PID: 2571 (code=exited, status=0/SUCCESS);         : 2742 (freeswitch)
       CGroup: /system.slice/freeswitch.service
               ├─usr/bin/freeswitch -ncwait -core -db /dev/shm -log /usr/local/freeswitch/log -conf /usr/local/freeswitch/conf -run /usr/local/freeswitch/run
               └─usr/bin/freeswitch -ncwait -core -db /dev/shm -log /usr/local/freeswitch/log -conf /usr/local/freeswitch/conf -run /usr/local/freeswitch/run
    Oct 23 01:31:53 fswitch-1 systemd[1]: Starting freeswitch...
    Oct 23 01:31:53 fswitch-1 freeswitch[2742]: 2743 Backgrounding.
    
    Oct 23 02:00:26 arribacom-sbc-1 systemd[1]: PID file
    /usr/local/freeswitch/run/freeswitch.pid not readable (yet?) after
    start.
    
    FreeSWITCH Version 1.7.0+git~20151021T165609Z~9fee9bc613~64bit (git
    9fee9bc 2015-10-21 16:56:09Z 64bit)
    
    [Unit]
    Description=freeswitch
    After=syslog.target network.target
    #
    [Service]
    Type=forking
    PIDFile=/usr/local/freeswitch/run/freeswitch.pid
    PermissionsStartOnly=true
    ExecStart=/usr/bin/freeswitch -nc -core -db /dev/shm -log /usr/local/freeswitch/log -conf /u
    ExecReload=/usr/bin/kill -HUP $MAINPID
    #ExecStop=/usr/bin/freeswitch -stop
    TimeoutSec=120s
    #
    WorkingDirectory=/usr/bin
    User=freeswitch
    Group=freeswitch
    LimitCORE=infinity
    LimitNOFILE=999999
    LimitNPROC=60000
    LimitSTACK=245760
    LimitRTPRIO=infinity
    LimitRTTIME=7000000
    #IOSchedulingClass=realtime
    #IOSchedulingPriority=2
    #CPUSchedulingPolicy=rr
    #CPUSchedulingPriority=89
    #UMask=0007
    #
    [Install]
    WantedBy=multi-user.target