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

27 lines
506 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[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