Adding init script for aliencat-exporter
This commit is contained in:
parent
f388e2a345
commit
23df8d8a5f
@ -18,3 +18,8 @@ DEPEND="dev-cpp/prometheus-cpp"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="dev-util/cmake"
|
||||
|
||||
src_install() {
|
||||
cmake_src_install
|
||||
newinitd "${FILESDIR}/${PN}.initd" "${PN}"
|
||||
}
|
||||
|
||||
|
||||
13
app-metrics/aliencat-exporter/files/aliencat-exporter.initd
Normal file
13
app-metrics/aliencat-exporter/files/aliencat-exporter.initd
Normal file
@ -0,0 +1,13 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
name="aliencat-exporter daemon"
|
||||
description=""
|
||||
command=/usr/bin/aliencat_exporter
|
||||
command_background=true
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
depend() {
|
||||
after net
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user