From adb5f0d278bae7ccda1d1807f094876a4671f94d Mon Sep 17 00:00:00 2001 From: Miguelo Date: Wed, 22 Jul 2015 09:36:09 +0200 Subject: [PATCH] FS-7130 make /run/freeswitch persistent, so it will start under systemd --- debian/freeswitch-systemd.freeswitch.conf | 1 + debian/freeswitch-systemd.install | 2 ++ debian/rules | 4 ++++ 3 files changed, 7 insertions(+) create mode 100644 debian/freeswitch-systemd.freeswitch.conf diff --git a/debian/freeswitch-systemd.freeswitch.conf b/debian/freeswitch-systemd.freeswitch.conf new file mode 100644 index 0000000000..77dfd6908c --- /dev/null +++ b/debian/freeswitch-systemd.freeswitch.conf @@ -0,0 +1 @@ +d /run/freeswitch 0755 freeswitch freeswitch - diff --git a/debian/freeswitch-systemd.install b/debian/freeswitch-systemd.install index d647282ecd..7a72d039e7 100644 --- a/debian/freeswitch-systemd.install +++ b/debian/freeswitch-systemd.install @@ -1 +1,3 @@ /lib/systemd/system/freeswitch.service +/usr/lib/tmpfiles.d/freeswitch.conf + diff --git a/debian/rules b/debian/rules index 67cf9e470c..d1be8edc88 100755 --- a/debian/rules +++ b/debian/rules @@ -98,6 +98,10 @@ override_dh_auto_install: dh_auto_install mkdir -p debian/tmp/lib/systemd/system install -m0644 debian/freeswitch-systemd.freeswitch.service debian/tmp/lib/systemd/system/freeswitch.service + + mkdir -p debian/tmp/usr/lib/tmpfiles.d + install -m0644 debian/freeswitch-systemd.freeswitch.conf debian/tmp/usr/lib/tmpfiles.d/freeswitch.conf + rm -f debian/tmp/usr/share/freeswitch/grammar/model/communicator/COPYING override_dh_installinit: