summaryrefslogtreecommitdiff
path: root/app-admin/rasdaemon/files/rasdaemon.openrc-r2
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/rasdaemon/files/rasdaemon.openrc-r2')
-rw-r--r--app-admin/rasdaemon/files/rasdaemon.openrc-r221
1 files changed, 21 insertions, 0 deletions
diff --git a/app-admin/rasdaemon/files/rasdaemon.openrc-r2 b/app-admin/rasdaemon/files/rasdaemon.openrc-r2
new file mode 100644
index 000000000000..c8a2bc4b0e65
--- /dev/null
+++ b/app-admin/rasdaemon/files/rasdaemon.openrc-r2
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Starts Reliablity, Availability and Serviceability (RAS) service"
+
+depend() {
+ need localmount
+ use logger
+}
+
+command="/usr/sbin/rasdaemon"
+command_args="${RASDAEMON_ARGS}"
+
+start_post() {
+ "${command}" --enable >/dev/null 2>&1
+}
+
+stop_post() {
+ "${command}" --disable >/dev/null 2>&1
+}