2016-11-06 12:48:16 +01:00
|
|
|
From 57f9c9cb438f13475ca437252770dc8d365d96cd Mon Sep 17 00:00:00 2001
|
2016-06-06 12:54:59 +02:00
|
|
|
From: Christian McHugh <mchugh19@hotmail.com>
|
|
|
|
Date: Thu, 10 Mar 2016 13:25:01 -0600
|
2016-11-06 12:48:16 +01:00
|
|
|
Subject: [PATCH 06/17] Create salt-proxy instantiated service file
|
2016-06-06 12:54:59 +02:00
|
|
|
|
|
|
|
Add a systemd service file for salt-proxy.
|
|
|
|
|
|
|
|
Instantiate a new proxy service with proxyid=p8000:
|
|
|
|
# systemctl enable salt-proxy\@p8000.service
|
|
|
|
# systemctl start salt-proxy\@p8000.service
|
|
|
|
---
|
|
|
|
pkg/salt-proxy@.service | 12 ++++++++++++
|
|
|
|
1 file changed, 12 insertions(+)
|
|
|
|
create mode 100644 pkg/salt-proxy@.service
|
|
|
|
|
|
|
|
diff --git a/pkg/salt-proxy@.service b/pkg/salt-proxy@.service
|
|
|
|
new file mode 100644
|
2016-11-06 12:48:16 +01:00
|
|
|
index 0000000..f97120a
|
2016-06-06 12:54:59 +02:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/pkg/salt-proxy@.service
|
|
|
|
@@ -0,0 +1,12 @@
|
|
|
|
+[Unit]
|
|
|
|
+Description=salt-proxy service
|
|
|
|
+After=network.target
|
|
|
|
+
|
|
|
|
+[Service]
|
|
|
|
+ExecStart=/usr/bin/salt-proxy --proxyid=%I
|
|
|
|
+Type=simple
|
|
|
|
+Restart=on-failure
|
|
|
|
+RestartSec=5s
|
|
|
|
+
|
|
|
|
+[Install]
|
|
|
|
+WantedBy=multi-user.target
|
|
|
|
--
|
2016-11-06 12:48:16 +01:00
|
|
|
2.10.1
|
2016-06-06 12:54:59 +02:00
|
|
|
|