summaryrefslogtreecommitdiffstats
path: root/unstable/freeswitch/freeswitch.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-08-21 14:29:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-08-21 14:29:46 +0000
commitf1d4e1c07e4687422d1c80211afaa1be04e73684 (patch)
treebb3be2171adf393326b13863372254abc65de6ad /unstable/freeswitch/freeswitch.initd
parentf7505532712a7f9f4842c8e129f876d5731cef21 (diff)
downloadaports-f1d4e1c07e4687422d1c80211afaa1be04e73684.tar.bz2
aports-f1d4e1c07e4687422d1c80211afaa1be04e73684.tar.xz
unstable/freeswitch: moved from testing
does not build
Diffstat (limited to 'unstable/freeswitch/freeswitch.initd')
-rw-r--r--unstable/freeswitch/freeswitch.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/unstable/freeswitch/freeswitch.initd b/unstable/freeswitch/freeswitch.initd
new file mode 100644
index 00000000..34f44139
--- /dev/null
+++ b/unstable/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
+ }