diff options
author | Michael Mason <ms13sp@gmail.com> | 2009-03-05 21:05:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-03-06 14:49:31 +0000 |
commit | 059f52fdd844549e462e07d26e6c8ec636a5386b (patch) | |
tree | fcf12f2e0985379c6397ef29bc442656b0411383 /testing/freeswitch/freeswitch.initd | |
parent | 09218f0553ff210a9776578d86458a9241fac1d0 (diff) | |
download | aports-059f52fdd844549e462e07d26e6c8ec636a5386b.tar.bz2 aports-059f52fdd844549e462e07d26e6c8ec636a5386b.tar.xz |
testing/freeswitch Patch for initd and install scripts
Diffstat (limited to 'testing/freeswitch/freeswitch.initd')
-rw-r--r-- | testing/freeswitch/freeswitch.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/freeswitch/freeswitch.initd b/testing/freeswitch/freeswitch.initd new file mode 100644 index 000000000..34f441390 --- /dev/null +++ b/testing/freeswitch/freeswitch.initd @@ -0,0 +1,19 @@ +#!/sbin/runscript + +NAME=freeswitch +USER=freeswitch +DAEMON=/usr/bin/freeswitch +OPTIONS_START="-u $USER -g $GROUP -nc" +OPTIONS_STOP="-stop" + +start() { + ebegin "Starting $NAME" + $DAEMON $OPTIONS_START + eend 0 + } + +stop() { + ebegin "Stopping $NAME" + $DAEMON $OPTIONS_STOP + eend 0 + } |