blob: 3c6669a579d19b185dc566978cb4f024166032ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/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"
|