summaryrefslogtreecommitdiff
path: root/files/arts/software/etherpad/etherpad
diff options
context:
space:
mode:
Diffstat (limited to 'files/arts/software/etherpad/etherpad')
-rwxr-xr-xfiles/arts/software/etherpad/etherpad35
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
15name="etherpad"
16rcvar=${name}_enable
17
18start_cmd="${name}_start"
19#stop_cmd="${name}_stop"
20
21load_rc_config $name
22
23etherpad_user="etherpad"
24#procname="java"
25procname="/usr/local/jdk1.6.0/bin/java"
26
27pidfile=/var/run/etherpad/etherpad.pid
28daemon_args=" -f -u ${etherpad_user} -p ${pidfile} /usr/local/pad/etherpad/bin/run-local.sh"
29etherpad_start()
30{
31 cd /usr/local/pad/etherpad/
32 /usr/sbin/daemon ${daemon_args}
33}
34
35run_rc_command "$1"