Commit 16da9ff3 authored by Mika Havela's avatar Mika Havela Committed by Natanael Copa

main/freeswitch: Specify pidfile.

When running freeswitch in a lxc environment, rc-status will fail when called using the 'lxc-attach' (and maybe also other tools).
Specifying the pidfile for 'start-stop-daemon' will resolve this problem.

(cherry picked from commit 08268e44)

fixes #4265
parent 676cb8c0
......@@ -3,7 +3,7 @@
# Contributor: Cameron Banta <cbanta@gmail.com>
pkgname=freeswitch
pkgver=1.4.18
pkgrel=5
pkgrel=6
pkgdesc="A communications platform written in C from the ground up"
url="http://www.freeswitch.org"
arch="all"
......@@ -220,7 +220,7 @@ e409b006b5dad6d8668c3e429bf20159 freeswitch-libshout-2.2.2.tar.gz
1e7f335ee00f589825ecc9affa779346 getlib.patch
0eb382f73ed393f28b8a797ebbfa608b modules.conf
c608cca8ad773acebf201f581438c7e7 freeswitch.confd
165d0e80f3f3a41643979f32f0180aed freeswitch.initd
d823b7fd353c9a95467e736e4a226b74 freeswitch.initd
90b133b14a42c86d53d5e54dcbfbaf58 libshout-disable-examples.patch
4cd4923463c89bed053e6295b5a4ec40 freeswitch-mod_shout-textrels.patch
6a6c4aba80e99c236ef712b17f3cdd01 system-lame.patch"
......@@ -234,7 +234,7 @@ b3a855acc96e0061a0c2b1162e8aff80b6b1a03849e3756786db2fcacfc9a9bd freeswitch-mpg
ab437c92149b6fc88bc2fc8a228d6a5f8af574e2c90469a6dc4c753d13972c34 getlib.patch
f83f9680d243eb254bf045571f971a6c5cf716367444cd48ed26d4c3367f4c41 modules.conf
846a29a361ef6eecd77876963b5c0133699c40fa8b34c68df42d5f8a1a1915b1 freeswitch.confd
b90220e484e0d65639083d7cede8b1bb331fbe04ec96e821198be8d05234bdce freeswitch.initd
9b5429cb74f4626c427f7ab198ad0487d8a20c0077e8612b845eca8318273baa freeswitch.initd
db0d3c252b5664ecb071bcf6868eff77c85dd7943a63fcfcac7e19db6a0ff61f libshout-disable-examples.patch
be1009327de615f04956ba0b0f44183f31c263e380af8027f94b976a84bcb09a freeswitch-mod_shout-textrels.patch
11b107ca8632bb9c8fcb2aedfcfb421af24929aace4f56c34d4e701eb410e190 system-lame.patch"
......@@ -248,7 +248,7 @@ d517d1d6a79dfd4819c42603faafc051c69270831f4894c01f6bd38e877eb008f8458534857641fd
4ceb48f64d2bc26a02cc0846276506241bfd30c156422b0a1d608fd172c099feb5c121a763652e9a45046dcdd0ba0eb71eab240e0c6ce2ad63ff781719e135a4 getlib.patch
6330e47cd3dcfdb4f5c99e91c9c725c7c8aa4f1691d83817d7600e510b5a586f3312bab84df3766448bbdab78cd1feebecf64b8280626b3f751f6e787f145e23 modules.conf
a585f6411185a26206137a1ad97a06fd6c73e80c5439e9be45eabfa70e7a83120169ba882971fcd328436c8e0242cbd664170b80754ea2846021689baf1f1595 freeswitch.confd
ebfea07fbaab6646eb1df3d2e357b9ba28e234c1ce486db1464c305625bac26aac0a1bc63c77dbda4ee68a58347dd82eba04d06bff6bbc0a03a541021f71e4a6 freeswitch.initd
d823ce7924f281b5808ffec0cd99569cd161b0749eca77dd076ea0dc86502e4d767c2fd2ff0d0c9c7ff67df3e077769268024a8e447a3ca19f77f28a2de775a4 freeswitch.initd
91a6d7c8456de65855930b371f568f0230c28422e667453aa48fababd185b47677c06ff0c79f94c2a02182439b012d48cb54548cbde3d12b8d0e1ffbb9b229cc libshout-disable-examples.patch
5f085254ca9f5dc196afd39fc55e083b1998e776d9de2428e5657d99077526c33c1fc13f12432598184ce63138447fed7c318c384b743681703f5682dc8e1e50 freeswitch-mod_shout-textrels.patch
398dd0f2665415ff40348dc94d26ec7008fb59ec033f9d2c64dc1aa01071021f83f47954e95efc58c4033f22bb6da159e83e3b0d36b99189d5e7535ed6ae70bd system-lame.patch"
......@@ -28,6 +28,7 @@ start() {
ebegin "Starting Freeswitch"
limits
start-stop-daemon --start --quiet --exec /usr/bin/freeswitch \
--pidfile $pidfile \
-- \
-nc \
${OPTS}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment