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
This commit is contained in:
21
app-metrics/glpi-agent/files/glpi-agent.initd
Normal file
21
app-metrics/glpi-agent/files/glpi-agent.initd
Normal file
@ -0,0 +1,21 @@
|
||||
#!/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 $?
|
||||
}
|
Reference in New Issue
Block a user