jeremy f0ca9f9b6a add app-metrics/glpi-agent
new file:   app-metrics/glpi-agent/Manifest
	new file:   app-metrics/glpi-agent/files/glpi-agent-1.4-dirs.patch
	new file:   app-metrics/glpi-agent/files/glpi-agent.confd
	new file:   app-metrics/glpi-agent/files/glpi-agent.initd
	new file:   app-metrics/glpi-agent/glpi-agent-1.4.ebuild
2022-08-16 06:35:55 +02:00

22 lines
493 B
Plaintext

#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
pidfile=${RC_PREFIX%/}/run/${SVCNAME}.pid
name="glpi-agent daemon"
description="GLPI agent"
command=/usr/bin/glpi-agent
command_args="--daemon --pidfile ${pidfile} ${GLPI-AGENT_OPTIONS}"
extra_started_commands="reload"
depend() {
need net
}
reload() {
ebegin "Reloading ${SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}