diff options
Diffstat (limited to 'main/mdadm/mdadm.initd')
-rw-r--r-- | main/mdadm/mdadm.initd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/main/mdadm/mdadm.initd b/main/mdadm/mdadm.initd new file mode 100644 index 0000000000..747661e8ee --- /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 $? +} + |