summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2018-11-19 12:57:39 -0600
committerMatthew Thode <prometheanfire@gentoo.org>2018-11-19 12:57:39 -0600
commit16c8bc19aa6bd45c9de7a928317b13981deedd6f (patch)
tree56bbd60aa7cfecbdbe16ed7a105215d4618dd944 /app-admin/rasdaemon/files
parentnet-firewall/nftables: move nft skels to doc (diff)
downloadgentoo-16c8bc19aa6bd45c9de7a928317b13981deedd6f.tar.gz
gentoo-16c8bc19aa6bd45c9de7a928317b13981deedd6f.tar.bz2
gentoo-16c8bc19aa6bd45c9de7a928317b13981deedd6f.zip
app-admin/rasdaemon: bump and install openrc files
Fixes: https://bugs.gentoo.org/670644 Package-Manager: Portage-2.3.51, 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/ras-mc-ctl.openrc10
-rw-r--r--app-admin/rasdaemon/files/rasdaemon.openrc18
2 files changed, 28 insertions, 0 deletions
diff --git a/app-admin/rasdaemon/files/ras-mc-ctl.openrc b/app-admin/rasdaemon/files/ras-mc-ctl.openrc
new file mode 100644
index 000000000000..d9790c482e21
--- /dev/null
+++ b/app-admin/rasdaemon/files/ras-mc-ctl.openrc
@@ -0,0 +1,10 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Starts ${SVCNAME} service for rasdaemon"
+
+command="/usr/bin/${SVCNAME}"
+command_args="--register-labels"
+pidfile=/run/${SVCNAME}.pid
+command_background=true
diff --git a/app-admin/rasdaemon/files/rasdaemon.openrc b/app-admin/rasdaemon/files/rasdaemon.openrc
new file mode 100644
index 000000000000..c16f18dbe3fe
--- /dev/null
+++ b/app-admin/rasdaemon/files/rasdaemon.openrc
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="Starts ${SVCNAME} service"
+
+command="/usr/bin/${SVCNAME}"
+command_args="--foreground --record"
+pidfile=/run/${SVCNAME}.pid
+command_background=true
+
+start_post() {
+ "${command}" --enable
+}
+
+stop_post() {
+ "${command}" --disable
+}