blob: 78ceebbf86dcb8ba2deb7f590e80d7d760b82e60 (
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
32
33
34
35
|
#!/bin/sh
#
# PROVIDE: etherpad
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable etherpad:
#
# etherpad_enable="YES"
#
. /etc/rc.subr
name="etherpad"
rcvar=${name}_enable
start_cmd="${name}_start"
#stop_cmd="${name}_stop"
load_rc_config $name
etherpad_user="etherpad"
#procname="java"
procname="/usr/local/jdk1.6.0/bin/java"
pidfile=/var/run/etherpad/etherpad.pid
daemon_args=" -f -u ${etherpad_user} -p ${pidfile} /usr/local/pad/etherpad/bin/run-local.sh"
etherpad_start()
{
cd /usr/local/pad/etherpad/
/usr/sbin/daemon ${daemon_args}
}
run_rc_command "$1"
|