summaryrefslogtreecommitdiff
path: root/contrib/bmc-snmp-proxy.service
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bmc-snmp-proxy.service')
-rw-r--r--contrib/bmc-snmp-proxy.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/bmc-snmp-proxy.service b/contrib/bmc-snmp-proxy.service
new file mode 100644
index 0000000..247137a
--- /dev/null
+++ b/contrib/bmc-snmp-proxy.service
@@ -0,0 +1,18 @@
+[Unit]
+Description=Setup SNMP proxy to BMC
+
+After=exchange-bmc-os-info.service
+Requires=exchange-bmc-os-info.service
+PartOf=exchange-bmc-os-info.service
+
+ConditionPathExists=/var/run/bmc-info
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+
+ExecStart=/usr/libexec/bmc-snmp-proxy start
+ExecStop=/usr/libexec/bmc-snmp-proxy stop
+
+[Install]
+WantedBy=multi-user.target