apkbuilds @ 3a981c0912f4e229e5a11c97230d2f57d1f01c3c

 1#!/sbin/openrc-run
 2
 3command="/usr/bin/lens"
 4command_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"
 5: ${command_user:="lens:lens"}
 6command_background=yes
 7directory="/var/lib/lens"
 8pidfile="/run/lens.pid"
 9
10output_log="/var/log/lens.log"
11error_log="/var/log/lens.log"
12
13depend() {
14	need net
15	after firewall
16}
17
18start_pre() {
19	checkpath -d -m 755 -o "$command_user" /var/lib/lens
20	checkpath -d -m 755 -o "$command_user" "$cache_path"
21	checkpath -f -m 644 -o "$command_user" /var/log/lens.log
22}