mirror of
https://github.com/lldap/lldap.git
synced 2024-11-25 09:06:03 +00:00
a97881477f
Use: extract (the future) FreeBSD release package into /usr/local/ -> so your files will be under /usr/local/lldap_server/ save/copy this rc.d script file into /usr/local/etc/rc.d/ finally cat lldap_enable=YES >> /etc/rc.conf the service script set to run the lldap server as "www" user - make sure the whole lldap_server directory is accessible/runnable by "www". Simplest to run chown -R www:www /usr/local/lldap_server
27 lines
550 B
Bash
27 lines
550 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: lldap
|
|
# REQUIRE: DAEMON NETWORKING
|
|
# KEYWORD: shutdown
|
|
|
|
# Add the following lines to /etc/rc.conf to enable lldap:
|
|
# lldap_enable : set to "YES" to enable the daemon, default is "NO"
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=lldap
|
|
rcvar=lldap_enable
|
|
|
|
lldap_chdir="/usr/local/lldap_server"
|
|
|
|
load_rc_config $name
|
|
|
|
lldap_enable=${lldap_enable:-"NO"}
|
|
|
|
logfile="/var/log/${name}.log"
|
|
|
|
procname=/usr/local/lldap_server/lldap
|
|
command="/usr/sbin/daemon"
|
|
command_args="-u www -o ${logfile} -t ${name} /usr/local/lldap_server/lldap run"
|
|
|
|
run_rc_command "$1"
|