diff options
Diffstat (limited to 'files/arts/software/etherpad/etherpad')
-rwxr-xr-x | files/arts/software/etherpad/etherpad | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/files/arts/software/etherpad/etherpad b/files/arts/software/etherpad/etherpad new file mode 100755 index 0000000..78ceebb --- /dev/null +++ b/files/arts/software/etherpad/etherpad | |||
@@ -0,0 +1,35 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | |||
4 | # PROVIDE: etherpad | ||
5 | # REQUIRE: LOGIN | ||
6 | # KEYWORD: shutdown | ||
7 | # | ||
8 | # Add the following line to /etc/rc.conf to enable etherpad: | ||
9 | # | ||
10 | # etherpad_enable="YES" | ||
11 | # | ||
12 | |||
13 | . /etc/rc.subr | ||
14 | |||
15 | name="etherpad" | ||
16 | rcvar=${name}_enable | ||
17 | |||
18 | start_cmd="${name}_start" | ||
19 | #stop_cmd="${name}_stop" | ||
20 | |||
21 | load_rc_config $name | ||
22 | |||
23 | etherpad_user="etherpad" | ||
24 | #procname="java" | ||
25 | procname="/usr/local/jdk1.6.0/bin/java" | ||
26 | |||
27 | pidfile=/var/run/etherpad/etherpad.pid | ||
28 | daemon_args=" -f -u ${etherpad_user} -p ${pidfile} /usr/local/pad/etherpad/bin/run-local.sh" | ||
29 | etherpad_start() | ||
30 | { | ||
31 | cd /usr/local/pad/etherpad/ | ||
32 | /usr/sbin/daemon ${daemon_args} | ||
33 | } | ||
34 | |||
35 | run_rc_command "$1" | ||