diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-31 19:08:28 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-31 19:08:28 +0200 |
commit | d06d63c0db0a1408a69124e339fa3efcf47d22f8 (patch) | |
tree | cfadb4e481ab8f58566781588a2c39eb67d4adb7 /apks/lens/lens.initd | |
parent | 423257074446f4e08298dd2808d85ca320e7f27b (diff) | |
download | apkbuilds-d06d63c0db0a1408a69124e339fa3efcf47d22f8.tar.gz apkbuilds-d06d63c0db0a1408a69124e339fa3efcf47d22f8.tar.bz2 apkbuilds-d06d63c0db0a1408a69124e339fa3efcf47d22f8.zip |
feat: Add lens
Diffstat (limited to 'apks/lens/lens.initd')
-rw-r--r-- | apks/lens/lens.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/apks/lens/lens.initd b/apks/lens/lens.initd new file mode 100644 index 0000000..6541bd1 --- /dev/null +++ b/apks/lens/lens.initd @@ -0,0 +1,24 @@ +#!/sbin/openrc-run + +name="lens simple file server" + +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 +} |