17 lines
480 B
Plaintext
17 lines
480 B
Plaintext
<% require 'pathname'; path = Pathname.new( __FILE__).expand_path.dirname %>
|
|
[Unit]
|
|
Description=Postfix Queue exporter
|
|
Documentation=https://git.denkn.at/deac/postfix_exporter
|
|
After=network.target
|
|
|
|
[Service]
|
|
Restart=always
|
|
User=postfix_exporter
|
|
WorkingDirectory=<%=path%>
|
|
ExecStart=<%=`which bundle`.chomp%> exec rackup --bind 'tcp://[::]:9124' --environment production --tag queue_exporter
|
|
ExecReload=/bin/kill -USR1 $MAINPID
|
|
KillMode=mixed
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|