Blame SOURCES/0002-Revert-maint-Remove-puppetmaster.service.patch

rdobuilder 8c12d8
From f54a22b96e9e631991bad095a7b321273a2e6e3f Mon Sep 17 00:00:00 2001
rdobuilder 8c12d8
From: Gael Chamoulaud <gchamoul@redhat.com>
rdobuilder 8c12d8
Date: Wed, 29 Jul 2015 21:58:48 +0200
rdobuilder 8c12d8
Subject: [PATCH 2/5] Revert "(maint) Remove puppetmaster.service"
rdobuilder 8c12d8
rdobuilder 8c12d8
This reverts commit c0e30daa53b6267c1c86b6e27c01b1c26cf49af5.
rdobuilder 8c12d8
---
rdobuilder 8c12d8
 ext/systemd/puppet.service       |  2 +-
rdobuilder 8c12d8
 ext/systemd/puppetmaster.service | 12 ++++++++++++
rdobuilder 8c12d8
 2 files changed, 13 insertions(+), 1 deletion(-)
rdobuilder 8c12d8
 create mode 100644 ext/systemd/puppetmaster.service
rdobuilder 8c12d8
rdobuilder 8c12d8
diff --git a/ext/systemd/puppet.service b/ext/systemd/puppet.service
rdobuilder 8c12d8
index 7c16615..36769ac 100644
rdobuilder 8c12d8
--- a/ext/systemd/puppet.service
rdobuilder 8c12d8
+++ b/ext/systemd/puppet.service
rdobuilder 8c12d8
@@ -11,7 +11,7 @@
rdobuilder 8c12d8
 [Unit]
rdobuilder 8c12d8
 Description=Puppet agent
rdobuilder 8c12d8
 Wants=basic.target
rdobuilder 8c12d8
-After=basic.target network.target
rdobuilder 8c12d8
+After=basic.target network.target puppetmaster.service
rdobuilder 8c12d8
 
rdobuilder 8c12d8
 [Service]
rdobuilder 8c12d8
 EnvironmentFile=-/etc/sysconfig/puppetagent
rdobuilder 8c12d8
diff --git a/ext/systemd/puppetmaster.service b/ext/systemd/puppetmaster.service
rdobuilder 8c12d8
new file mode 100644
rdobuilder 8c12d8
index 0000000..dbbd627
rdobuilder 8c12d8
--- /dev/null
rdobuilder 8c12d8
+++ b/ext/systemd/puppetmaster.service
rdobuilder 8c12d8
@@ -0,0 +1,12 @@
rdobuilder 8c12d8
+[Unit]
rdobuilder 8c12d8
+Description=Puppet master
rdobuilder 8c12d8
+Wants=basic.target
rdobuilder 8c12d8
+After=basic.target network.target
rdobuilder 8c12d8
+
rdobuilder 8c12d8
+[Service]
rdobuilder 8c12d8
+EnvironmentFile=-/etc/sysconfig/puppetmaster
rdobuilder 8c12d8
+EnvironmentFile=-/etc/default/puppetmaster
rdobuilder 8c12d8
+ExecStart=/usr/bin/puppet master $PUPPETMASTER_EXTRA_OPTS --no-daemonize
rdobuilder 8c12d8
+
rdobuilder 8c12d8
+[Install]
rdobuilder 8c12d8
+WantedBy=multi-user.target
rdobuilder 8c12d8
-- 
rdobuilder 8c12d8
2.19.2
rdobuilder 8c12d8