1. 03 10月, 2015 1 次提交
    • Stanislav Sinyagin's avatar
      FS-8195 Compatibility with Solaris 11 process privileges · 9461ed13
      Stanislav Sinyagin 提交于
      Now the daemon manages its privileges correctly, so that -rp, -u,
      -g and -lp can be supported, also in a Solaris zone.
      
      Also fixed a problem that switch_log_printf() was used before the
      logger was initialized, so the messages were sent to nowhere.
      9461ed13
  2. 22 9月, 2015 5 次提交
    • Travis Cross's avatar
      Remove explicit set of WorkingDirectory · 2184af8e
      Travis Cross 提交于
      In the systemd unit for FS/debian, if the WorkingDirectory is not set
      then it defaults to '/'.  This is fine for FS, and is a common and
      expected chdir choice for daemons.
      
      We had previously set this to /run/freeswitch.  Due to Debian having
      systemd-coredump(8) disabled, this was causing core files to be
      written to /run/freeswitch, which is a bad place for them as it's
      mounted on tmpfs.  So in commit cd68e0fe we changed this to the log
      directory /var/log/freeswitch.  That choice is a bit usual as well on
      Debian.
      
      It's better to leave FS as running on '/'.  This will prevent core
      files from being written unless the user adjusts `sysctl
      kernel.core_pattern`, which is a reasonable thing to expect if the
      user wants these files.  Core files can be huge, and even having them
      go to /var/log unexpectedly can be a problem.
      
      When Debian adds the systemd-coredumps support this will all work
      nicely and automatically.
      
      ref: http://www.freedesktop.org/software/systemd/man/coredump.conf.html
      ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744964
      
      References-commit: cd68e0fe
      
      FS-7909
      2184af8e
    • Travis Cross's avatar
      Move chown of /etc/freeswitch/tls to postinst · 16d0538f
      Travis Cross 提交于
      Doing a chown of something in /etc/ as part of a systemd service file
      is totally broken.  It's far too large a sledgehammer to point at /etc
      here.  Someone may legitimately not be using /etc/freeswitch/tls in
      his configuration, in which case this chown would fail and cause FS to
      fail to start.  Or someone may legitimately need /etc/freeswitch/tls
      to have different ownership, in which case we would clobber it here.
      
      The right thing to do is to create this directory in the
      postinst (which we already are, assuming there is not an existing
      configuration) and then perform the chown of it at the same time.
      
      FS-7697
      16d0538f
    • Travis Cross's avatar
      Use systemd RuntimeDirectory for /run/freeswitch · 12e90ce9
      Travis Cross 提交于
      This changes how we create the temporary directory /run/freeswitch
      when starting FS with systemd.  The /run directory starts empty after
      a system reboot, so we need to ensure this directory is present.
      
      Originally for the FS systemd unit we created /run/freeswitch using
      ExecStartPre and mkdir.  With commit adb5f0d2 this was changed to use
      the tmpfiles.d(5) mechanism (but the ExecStartPre/mkdir code was not
      removed).
      
      As part of systemd.exec(5), systemd provides a mechanism to
      automatically manage these directories under /run and to bind their
      lifetime to the lifetime of the process.  This is actually what we
      want here as compared to the more general tmpfiles.d(5) mechanism.
      
      This commit moves to using the RuntimeDirectory= mechanism and removes
      the obsolete ExecStartPre/mkdir code.
      
      References-commit: adb5f0d2
      12e90ce9
    • Mike Jerris's avatar
      Merge pull request #502 in FS/freeswitch from… · e7e79c21
      Mike Jerris 提交于
      Merge pull request #502 in FS/freeswitch from ~SAUMAR/freeswitch:bugfix/FS-7673-odbc-null-value-incorrectly-evaluated to master
      
      * commit '3aa051e1':
        FS-7673: ODBC NULL value incorrectly evaluated in mod_v8
      e7e79c21
    • Saumar Hajjar's avatar
      3aa051e1
  3. 21 9月, 2015 11 次提交
  4. 19 9月, 2015 4 次提交
  5. 18 9月, 2015 10 次提交
  6. 17 9月, 2015 9 次提交