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