vp-build/srcpkgs/66-boot/files/metalog/metalog

27 lines
506 B
Plaintext
Raw Normal View History

[main]
@type = classic
@description = "metalog daemon"
@user = ( root )
@options = ( log env )
[start]
@build = auto
@execute = (
execl-cmdline -s { /usr/bin/metalog configfile=${conf_dir}/${conf_file} pidfile=${dir_run}/${pid_name} } )
[logger]
@build = auto
@timestamp = iso
[stop]
@build = auto
@execute = (
bash -c "kill -TERM $(<${dir_run}/${pid_name})"
s6-rmrf ${dir_run}/${pid_name} )
[environment]
conf_dir=!/etc/metalog
conf_file=!metalog.conf
dir_run=!/run
pid_name=!metalog.pid