diff options
Diffstat (limited to 'files/arts/software/etherpad/soffice')
-rwxr-xr-x | files/arts/software/etherpad/soffice | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/files/arts/software/etherpad/soffice b/files/arts/software/etherpad/soffice new file mode 100755 index 0000000..dc83499 --- /dev/null +++ b/files/arts/software/etherpad/soffice | |||
@@ -0,0 +1,28 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | |||
4 | # PROVIDE: soffice | ||
5 | # REQUIRE: LOGIN | ||
6 | # KEYWORD: shutdown | ||
7 | # | ||
8 | # Add the following line to /etc/rc.conf to enable etherpad: | ||
9 | # | ||
10 | # soffice_enable="YES" | ||
11 | # | ||
12 | |||
13 | . /etc/rc.subr | ||
14 | |||
15 | name="soffice" | ||
16 | rcvar=${name}_enable | ||
17 | |||
18 | start_cmd="${name}_start" | ||
19 | #stop_cmd="${name}_stop" | ||
20 | |||
21 | load_rc_config $name | ||
22 | |||
23 | soffice_start() | ||
24 | { | ||
25 | /usr/sbin/daemon -f /usr/local/bin/soffice -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service" -nologo | ||
26 | } | ||
27 | |||
28 | run_rc_command "$1" | ||