apkbuilds @ 677190c16a7c7d55fcba6e27b044d7f9de1b4264

 1#!/sbin/openrc-run
 2
 3name="lens simple file server"
 4
 5command="/usr/bin/lens"
 6command_args="--aes-key ${aes_key} --db-type ${db_type} --db-con ${db_con} --log-level ${log_level} --scheduler-count ${scheduler_count} --cache-path ${cache_path}"
 7: ${command_user:="lens:lens"}
 8command_background=yes
 9directory="/var/lib/lens"
10pidfile="/run/lens.pid"
11
12output_log="/var/log/lens.log"
13error_log="/var/log/lens.log"
14
15depend() {
16	need net
17	after firewall
18}
19
20start_pre() {
21	checkpath -d -m 755 -o "$command_user" /var/lib/lens
22	checkpath -d -m 755 -o "$command_user" "$cache_path"
23	checkpath -f -m 644 -o "$command_user" /var/log/lens.log
24}