1d56a212d3
PR: ports/204632 Submitted by: Mathieu Simon <freebsd@simweb.ch>
31 lines
569 B
Bash
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"
|