OSDN Git Service

New service: 3proxy.
[avyssos/void-66-services.git] / usr / share / 66 / service / metalog
1 [main]
2 @type = classic
3 @version = 0.0.1
4 @description = "metalog daemon"
5 @user = ( root )
6 @options = ( log env )
7
8 [start]
9 @execute = ( execl-cmdline -s { metalog -v −−pidfile=${pid_name} } )
10
11 [stop]
12 @execute = (
13         foreground {
14                 redirfd -r 0 ${pid_name}
15                 forstdin -d"\n" -- pid
16                 importas -ui pid pid
17                 kill -TERM ${pid}
18         }
19         s6-rmrf ${pid_name}
20 )
21
22 [environment]
23 pid_name=!/run/metalog.pid