blob: 28fcfa57153925cb562f501576a423906a8cec4b (
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
|
#!/bin/sh
#
# PROVIDE: instiki
# REQUIRE: DAEMON
# KEYWORD: FreeBSD
#
# Add the following line to /etc/rc.conf to enable instiki:
# instiki_enable (bool): Set to "NO" by default
# Set it to "YES" to enable instiki
# instiki_flags (str): Set to "--port %%INSTIKIPORT%% --storage %%PREFIX%%/%%INSTIKIDIR%%/storage --daemon" by default.
# Extra flags passed to start command
#
. %%RC_SUBR%%
name="instiki"
rcvar=`set_rcvar`
command="%%PREFIX%%/%%INSTIKIDIR%%/instiki"
command_interpreter="%%RUBY_WITH_SUFFIX%%"
[ -z "$instiki_enable" ] && instiki_enable="NO"
[ -z "$instiki_flags" ] && instiki_flags="--port %%INSTIKIPORT%% --storage %%PREFIX%%/%%INSTIKIDIR%%/storage --daemon"
load_rc_config $name
sig_stop=-TERM
run_rc_command "$1"
|