summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2019-05-23 23:32:36 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2019-05-23 23:32:53 -0500
commite7e05995da72932bbe91c2b72d498ce86b862218 (patch)
tree836c670f75636dacc4596dc7211d94b013684403 /app-admin/rasdaemon/files
parentx11-misc/light-locker: bump to 1.9.0 (diff)
downloadgentoo-e7e05995da72932bbe91c2b72d498ce86b862218.tar.gz
gentoo-e7e05995da72932bbe91c2b72d498ce86b862218.tar.bz2
gentoo-e7e05995da72932bbe91c2b72d498ce86b862218.zip
app-admin/rasdaemon: we don't need sqlite
Thanks to Paul B. Henson <henson@acm.org> for the help Fixes: https://bugs.gentoo.org/686128 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'app-admin/rasdaemon/files')
-rw-r--r--app-admin/rasdaemon/files/rasdaemon.confd2
-rw-r--r--app-admin/rasdaemon/files/rasdaemon.openrc-r221
2 files changed, 23 insertions, 0 deletions
diff --git a/app-admin/rasdaemon/files/rasdaemon.confd b/app-admin/rasdaemon/files/rasdaemon.confd
new file mode 100644
index 000000000000..2b89db191cd7
--- /dev/null
+++ b/app-admin/rasdaemon/files/rasdaemon.confd
@@ -0,0 +1,2 @@
+# pass the -record option if sqlite is enabled and you wish store events in sqlite
+#RASDAEMON_ARGS=-record
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
+}