aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch/freeswitch.initd
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2015-06-02 12:23:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-03 07:33:57 +0000
commit08268e4454e5d9c943cd9f1957305c4bfd38a6a3 (patch)
treed9181fcde9c4e2b9185d969d98effd3d697287d1 /main/freeswitch/freeswitch.initd
parent18c28edd869c6e0d0fca8ac56428b2ebe25fdc97 (diff)
downloadaports-08268e4454e5d9c943cd9f1957305c4bfd38a6a3.tar.bz2
aports-08268e4454e5d9c943cd9f1957305c4bfd38a6a3.tar.xz
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.
Diffstat (limited to 'main/freeswitch/freeswitch.initd')
-rwxr-xr-xmain/freeswitch/freeswitch.initd1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/freeswitch/freeswitch.initd b/main/freeswitch/freeswitch.initd
index 63ec58ad10..452a38bbe9 100755
--- a/main/freeswitch/freeswitch.initd
+++ b/main/freeswitch/freeswitch.initd
@@ -28,6 +28,7 @@ start() {
ebegin "Starting Freeswitch"
limits
start-stop-daemon --start --quiet --exec /usr/bin/freeswitch \
+ --pidfile $pidfile \
-- \
-nc \
${OPTS}