19 lines
554 B
Plaintext
19 lines
554 B
Plaintext
<% require 'pathname'; path = Pathname.new( __FILE__).expand_path.dirname %>
|
|
[Unit]
|
|
Description=Postfix and Dovecot performace data exporter
|
|
Documentation=https://git.denkn.at/deac/postfix_exporter
|
|
After=systemd-journald.service network.target
|
|
|
|
[Service]
|
|
Type=notify
|
|
Restart=always
|
|
User=postfix_exporter
|
|
WorkingDirectory=<%=path%>
|
|
ExecStart=<%=`which bundle`.chomp%> exec puma --bind 'tcp://[::]:9124' --environment production --tag postfix_exporter
|
|
ExecReload=/bin/kill -USR1 $MAINPID
|
|
KillMode=mixed
|
|
WatchdogSec=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|