freebsd-ports/net-mgmt/p5-FusionInventory-Agent/files/fusioninventory.in
Veniamin Gvozdikov 1d56a212d3 - Upgrade to 2.3.17
PR:		ports/204632
Submitted by:	Mathieu Simon <freebsd@simweb.ch>
2016-02-04 15:29:25 +00:00

31 lines
569 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: fusioninventory
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# fusioninventory_enable (bool): Set to NO by default.
# Set it to YES to enable.
#
. /etc/rc.subr
name=fusioninventory
rcvar=fusioninventory_enable
load_rc_config $name
: ${fusioninventory_enable:="NO"}
pidfile=/var/run/${name}.pid
command=%%PREFIX%%/bin/fusioninventory-agent
command_args="--daemon --pidfile=${pidfile}"
command_interpreter=%%PREFIX%%/bin/perl
run_rc_command "$1"