27 lines
506 B
Plaintext
27 lines
506 B
Plaintext
|
[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
|