diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-02 08:15:40 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-02 08:15:40 +0000 |
commit | 2690d595a5cb78777d8c12aca212ac386cbfbe1d (patch) | |
tree | 0cf9e8510b869d2e38ab3bf2b4f165e7d535f569 /user/mdadm/mdadm.initd | |
parent | a3758819aee2547f93c1234e042b8b839dcd2be8 (diff) | |
download | packages-2690d595a5cb78777d8c12aca212ac386cbfbe1d.tar.gz packages-2690d595a5cb78777d8c12aca212ac386cbfbe1d.tar.bz2 packages-2690d595a5cb78777d8c12aca212ac386cbfbe1d.tar.xz packages-2690d595a5cb78777d8c12aca212ac386cbfbe1d.zip |
user/mdadm: pull in from Alpine, fix up, requested by @Elizafox
Diffstat (limited to 'user/mdadm/mdadm.initd')
-rw-r--r-- | user/mdadm/mdadm.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/user/mdadm/mdadm.initd b/user/mdadm/mdadm.initd new file mode 100644 index 000000000..f799dd4d5 --- /dev/null +++ b/user/mdadm/mdadm.initd @@ -0,0 +1,28 @@ +#!/sbin/openrc-run + +# Sample init.d file for alpine linux. + +NAME=mdadm +DAEMON=/sbin/$NAME + +depend() { + use logger dns net + after firewall +} + +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 $? +} + |