summaryrefslogtreecommitdiffstats
path: root/extra/dahdi-tools/dahdi-tools.initd
diff options
context:
space:
mode:
Diffstat (limited to 'extra/dahdi-tools/dahdi-tools.initd')
-rw-r--r--extra/dahdi-tools/dahdi-tools.initd15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/dahdi-tools/dahdi-tools.initd b/extra/dahdi-tools/dahdi-tools.initd
new file mode 100644
index 000000000..ccdace428
--- /dev/null
+++ b/extra/dahdi-tools/dahdi-tools.initd
@@ -0,0 +1,15 @@
+#!/sbin/runscript
+
+conf=/etc/dahdi/system.conf
+
+start() {
+ ebegin "Starting dahdi"
+ /usr/sbin/dahdi_cfg
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping dahdi"
+ /usr/sbin/dahdi_cfg -s
+ eend $?
+}