apkbuilds @ d06d63c0db0a1408a69124e339fa3efcf47d22f8

 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}