]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-8194 FS-7910 FS-7937 systemd service improvements
authorStanislav Sinyagin <ssinyagin@k-open.com>
Fri, 9 Oct 2015 13:30:14 +0000 (15:30 +0200)
committerStanislav Sinyagin <ssinyagin@k-open.com>
Sat, 10 Oct 2015 14:08:11 +0000 (16:08 +0200)
commitb2bcc8b2dd449cbe30bdfc5428e36171762cbd3e
treebe4d5eef53d322c7a971d3c779d15ebf7c21db27
parenta5a3561b2b730bca6e46ecf865b26d561ffca704
FS-8194 FS-7910 FS-7937 systemd service improvements

freeswitch-systemd.freeswitch.service:
* starting the daemon as root and switchig to freeswitch user
* respecting the options in /etc/default/freeswitch
* RuntimeDirectory parameter is replaced with a tmpfiles.d entry
  because /run/freeswitch has to be owned by freeswitch user
* instructions how to start it as non-root

debian/freeswitch-systemd.freeswitch.tmpfile:
* this defines the PID directory with correct permissions

debian/bootstrap.sh, debian/rules:
* proper handling of freeswitch.service
* deleted debian/freeswitch-systemd.install because it caused an error
  in dh_install because it's run before dh_installinit
* renamed: freeswitch-sysvinit.freeswitch.default -> freeswitch-systemd.freeswitch.default
  because sysvinit support will eventually die out

debian/freeswitch.postinst:
* run "systemctl enable freeswitch" if systemctl is available

CAVEAT: only one option is supported in /etc/default/freeswitch because the
variable ${DAEMON_OPTS} is expanded as a single token. This will be fixed
as soon as freeswitch-sysvinit is removed from freeswitch-all.
debian/bootstrap.sh
debian/freeswitch-systemd.freeswitch.default [moved from debian/freeswitch-sysvinit.freeswitch.default with 100% similarity]
debian/freeswitch-systemd.freeswitch.service
debian/freeswitch-systemd.freeswitch.tmpfile [new file with mode: 0644]
debian/freeswitch-systemd.install [deleted file]
debian/freeswitch.postinst
debian/rules