diff options
author | Henrik Riomar <henrik.riomar@gmail.com> | 2019-05-23 20:42:21 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-19 15:04:35 +0000 |
commit | 57a07cfa5cb3356b23c0c1f36a9488518857b7a4 (patch) | |
tree | 1b10b0e77d872ea6911b94801c2b3509fe8b1ba0 /testing/rasdaemon/rasdaemon.initd | |
parent | 36ad51e89e8a49f093b2c200e85b63556f3593b8 (diff) | |
download | aports-57a07cfa5cb3356b23c0c1f36a9488518857b7a4.tar.bz2 aports-57a07cfa5cb3356b23c0c1f36a9488518857b7a4.tar.xz |
testing/rasdaemon: new aport
Diffstat (limited to 'testing/rasdaemon/rasdaemon.initd')
-rw-r--r-- | testing/rasdaemon/rasdaemon.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/rasdaemon/rasdaemon.initd b/testing/rasdaemon/rasdaemon.initd new file mode 100644 index 0000000000..221d238320 --- /dev/null +++ b/testing/rasdaemon/rasdaemon.initd @@ -0,0 +1,20 @@ +#!/sbin/openrc-run + +description="daemon to receive RAS error tracings" + +pidfile=/run/"$RC_SVCNAME".pid +command=/usr/sbin/rasdaemon +command_args="--foreground --record" +command_background=true + +depend() { + need localmount sysfs +} + +start_post() { + "${command}" --enable +} + +stop_post() { + "${command}" --disable +} |