3 changed files with 31 additions and 1 deletions
@ -0,0 +1,29 @@ |
|||
#!/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" |
|||
Loading…
Reference in new issue