summarylogtreecommitdiffstats
path: root/mackerel-agent.service
diff options
context:
space:
mode:
Diffstat (limited to 'mackerel-agent.service')
-rw-r--r--mackerel-agent.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/mackerel-agent.service b/mackerel-agent.service
new file mode 100644
index 000000000000..f7636ee50202
--- /dev/null
+++ b/mackerel-agent.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=A revolutionary new kind of application performance management
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/mackerel-agent
+ExecStop=/usr/bin/kill -s QUIT $MAINPID
+PIDFile=/run/mackerel-agent.pid
+Restart=always
+
+[Install]
+WantedBy=multi-user.target