summaryrefslogtreecommitdiffstats
path: root/main/mdadm/mdadm.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/mdadm/mdadm.initd')
-rw-r--r--main/mdadm/mdadm.initd27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/mdadm/mdadm.initd b/main/mdadm/mdadm.initd
new file mode 100644
index 000000000..747661e8e
--- /dev/null
+++ b/main/mdadm/mdadm.initd
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+
+# Sample init.d file for alpine linux.
+
+NAME=mdadm
+DAEMON=/sbin/$NAME
+
+depend() {
+ use logger dns net
+}
+
+start() {
+ ebegin "Starting ${NAME}"
+ start-stop-daemon --start --quiet --background \
+ --exec ${DAEMON} -- \
+ --monitor --scan \
+ --daemonise ${OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${NAME}"
+ start-stop-daemon --stop --quiet \
+ --exec ${DAEMON}
+ eend $?
+}
+