From bdfb8363f57ce2e32103cc2fc954f2ec8852fdd9 Mon Sep 17 00:00:00 2001 From: Miguelo Sana Date: Mon, 13 Jul 2015 11:33:46 +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 | 1 + debian/rules | 2 ++ 3 files changed, 4 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..a94293afcf --- /dev/null +++ b/debian/freeswitch-systemd.freeswitch.conf @@ -0,0 +1 @@ +d /run/freeswitch 0755 freeswitch freeswitch - \ No newline at end of file diff --git a/debian/freeswitch-systemd.install b/debian/freeswitch-systemd.install index d647282ecd..b554d1b2bd 100644 --- a/debian/freeswitch-systemd.install +++ b/debian/freeswitch-systemd.install @@ -1 +1,2 @@ /lib/systemd/system/freeswitch.service +/usr/lib/tmpfiles.d/freeswitch.conf diff --git a/debian/rules b/debian/rules index 67cf9e470c..705dc19f9a 100755 --- a/debian/rules +++ b/debian/rules @@ -98,6 +98,8 @@ 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/usr/lib/tmpfiles.d/freeswitch.conf rm -f debian/tmp/usr/share/freeswitch/grammar/model/communicator/COPYING override_dh_installinit: