summaryrefslogtreecommitdiff
blob: 58bd3bbf2b45920b8146f4817eda0a66f38b2fed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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="fusioninventory-agent daemon"
description="FusionInventroy agent"
command=/usr/bin/fusioninventory-agent
command_args="--daemon --pidfile ${pidfile} ${FUSIONINVENTORY_OPTIONS}"
extra_started_commands="reload"

depend() {
	need net
}

reload() {
        ebegin "Reloading ${SVCNAME}"
        start-stop-daemon --signal HUP --pidfile "${pidfile}"
        eend $?
}