diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-25 19:33:39 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-28 08:31:11 +0100 |
commit | ad6182343997a405079870a2fe91c4e0c6b94595 (patch) | |
tree | 4aa7483cd0ad7de54338afc8e7971417abe1dd81 /sys-cluster/open-mx/files/omxoed.initd | |
parent | e8f81810baa21f490d6910e8e2d424546b72a333 (diff) |
gentoo resync : 25.09.2019
Diffstat (limited to 'sys-cluster/open-mx/files/omxoed.initd')
-rw-r--r-- | sys-cluster/open-mx/files/omxoed.initd | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/sys-cluster/open-mx/files/omxoed.initd b/sys-cluster/open-mx/files/omxoed.initd deleted file mode 100644 index 765842ed7f68..000000000000 --- a/sys-cluster/open-mx/files/omxoed.initd +++ /dev/null @@ -1,45 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need net -} - -checksystem() { - if [ -c /dev/open-mx ]; then - einfo "Open-MX module already loaded" - return 0 - else - einfo "Checking if Open-MX module present" - if [ "x$(modprobe -l open-mx | grep open-mx)" == "x" ]; then - eerror "open-mx not found!" - return 1 - fi - fi -} - -start() { - ebegin "Starting ${SVCNAME}" - checksystem || return 1 - if [ ! -c /dev/open-mx ]; then - ebegin "Loading open-mx module" - modprobe -q open-mx - fi - start-stop-daemon --start --exec /usr/bin/omxoed \ - --background --make-pidfile \ - --pidfile /var/run/omeoed.pid - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --exec /usr/bin/omxoed \ - --pidfile /var/run/omeoed.pid - eend $? -} - -status() { - ebegin "Showing current active Open-MX peers" - omx_info -q -} |