[supervisor] add [Install] section to service file, so systemctl can enable it

Nils Philippsen nphilipp at fedoraproject.org
Sat Sep 1 10:40:41 UTC 2012


commit f1de940a022bb961b8cadd9d92bfd8eb6d16c4a8
Author: Nils Philippsen <nils at redhat.com>
Date:   Sat Sep 1 12:40:31 2012 +0200

    add [Install] section to service file, so systemctl can enable it

 supervisor.spec     |    5 ++++-
 supervisord.service |    3 +++
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/supervisor.spec b/supervisor.spec
index ccd9cbd..af2eef0 100644
--- a/supervisor.spec
+++ b/supervisor.spec
@@ -10,7 +10,7 @@ Summary:  A System for Allowing the Control of Process State on UNIX
 Name: supervisor
 Version: 3.0
 %define prever a12
-Release: 0.9%{?prever:.%{prever}}%{?dist}
+Release: 0.10%{?prever:.%{prever}}%{?dist}
 
 License: ZPLv2.1 and BSD and MIT
 Group: System Environment/Base
@@ -121,6 +121,9 @@ fi
 %config(noreplace) %{_sysconfdir}/logrotate.d/supervisor
 
 %changelog
+* Sat Aug 30 2012 Nils Philippsen <nils at redhat.com> - 3.0-0.10.a12
+- add [Install] section to service file, so systemctl can enable it
+
 * Tue Aug 21 2012 Nils Philippsen <nils at redhat.com> - 3.0-0.9.a12
 - use systemd macros from F-18/RHEL-7 on
 - use %%{_unitdir} macro for systemd unit paths
diff --git a/supervisord.service b/supervisord.service
index dc27bef..4e6a489 100644
--- a/supervisord.service
+++ b/supervisord.service
@@ -6,3 +6,6 @@ After=rc-local.service
 Type=forking
 ExecStart=/usr/bin/supervisord
 SysVStartPriority=99
+
+[Install]
+WantedBy=multi-user.target


More information about the scm-commits mailing list