mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 05:23:01 -04:00
net-p2p/trezord-go: add openrc init script
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Andreas Zuber <a.zuber@gmx.ch> Signed-off-by: Michael Egger <egger.m@protonmail.com>
This commit is contained in:
committed by
Michael Egger
parent
67d786df89
commit
3147f44d97
9
net-p2p/trezord-go/files/trezord-openrc.sh
Normal file
9
net-p2p/trezord-go/files/trezord-openrc.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
command="/usr/bin/trezord"
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
command_args="-l /var/log/trezord/trezord.log"
|
||||
command_user="trezord"
|
||||
command_background=true
|
||||
@@ -24,6 +24,10 @@ DEPEND="
|
||||
|
||||
src_install() {
|
||||
newbin trezord-go trezord
|
||||
newinitd "${FILESDIR}/trezord-openrc.sh" trezord
|
||||
keepdir /var/log/trezord
|
||||
fowners trezord:root /var/log/trezord
|
||||
|
||||
use systemd && systemd_dounit src/github.com/trezor/trezord-go/release/linux/trezord.service
|
||||
use udev && udev_dorules src/github.com/trezor/trezord-go/release/linux/trezor.rules
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user