You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
537 B
29 lines
537 B
#!/bin/sh
|
|
|
|
# PROVIDE: glpiagent
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
|
|
# to enable this service:
|
|
#
|
|
# glpiagent_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable.
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=glpiagent
|
|
rcvar=glpiagent_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${glpiagent_enable:="NO"}
|
|
|
|
pidfile=/var/run/${name}.pid
|
|
|
|
command=%%PREFIX%%/bin/glpi-agent
|
|
command_args="--daemon --pidfile=${pidfile}"
|
|
#command_interpreter=%%PREFIX%%/bin/perl
|
|
|
|
run_rc_command "$1"
|
|
|