Lines 10-16
Link Here
|
10 |
# to enable this service: |
10 |
# to enable this service: |
11 |
# |
11 |
# |
12 |
# honeytrap_enable (bool): Set to NO by default. |
12 |
# honeytrap_enable (bool): Set to NO by default. |
13 |
# Set it to YES to enable honeytrap. |
13 |
# Set it to YES to enable honeytrap. |
14 |
# honeytrap_datadir (path): Set to %%PREFIX%%/libdata/honeytrap |
14 |
# honeytrap_datadir (path): Set to %%PREFIX%%/libdata/honeytrap |
15 |
# by default. |
15 |
# by default. |
16 |
# honeytrap_config (path): Set to %%PREFIX%%/etc/honeytrap.toml |
16 |
# honeytrap_config (path): Set to %%PREFIX%%/etc/honeytrap.toml |
Lines 27-41
Link Here
|
27 |
: ${honeytrap_datadir="%%PREFIX%%/libdata/honeytrap"} |
27 |
: ${honeytrap_datadir="%%PREFIX%%/libdata/honeytrap"} |
28 |
: ${honeytrap_config="%%PREFIX%%/etc/honeytrap.toml"} |
28 |
: ${honeytrap_config="%%PREFIX%%/etc/honeytrap.toml"} |
29 |
|
29 |
|
30 |
start_cmd="${name}_start" |
30 |
command=%%PREFIX%%/bin/${name} |
|
|
31 |
command_args="--data ${honeytrap_datadir} --config ${honeytrap_config} >> /var/log/honeytrap/service.log 2>&1" |
31 |
|
32 |
|
32 |
honeytrap_program="%%PREFIX%%/bin/honeytrap" |
|
|
33 |
honeytrap_flags="--data $honeytrap_datadir --config $honeytrap_config" |
34 |
pidfile=/var/run/${name}.pid |
35 |
|
36 |
honeytrap_start() |
37 |
{ |
38 |
daemon -o /var/log/honeytrap/service.log -p $pidfile -u $name $honeytrap_program $honeytrap_flags |
39 |
} |
40 |
|
41 |
run_rc_command "$@" |
33 |
run_rc_command "$@" |