Systemd files for mcollective #41

Closed
wants to merge 2 commits into from

4 participants

@traylenator

Use systemd with fedora17.

@ripienaar

Nice, we'd need a ticket over at redmine for this so we can track authorship and CLA signing etc before I can merge this

thanks

@haus haus commented on the diff Aug 6, 2012
ext/redhat/mcollective.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=The Marionette Collective
+After=network.target
+
+[Service]
+Type=forking
@haus
Puppet member
haus added a note Aug 6, 2012

Unless daemonize is set to 1 in server.cfg starting the service with this service file will hang. If the type is set to simple it behaves as expected, even with the default daemonize of 0.

Edit: never mind, server.cfg has daemonize of 1, so this will work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@haus haus commented on the diff Aug 6, 2012
ext/redhat/mcollective.spec
@@ -69,8 +73,12 @@ rm -rf %{buildroot}
%if 0%{?suse_version}
%{__install} -m0755 mcollective.init %{buildroot}%{_sysconfdir}/init.d/mcollective
%else
+%if 0%{?fedora} >= 17
+%{__install} -m0755 ext/redhat/mcollective.service %{buildroot}%{_unitdir}/mcollective.service
@haus
Puppet member
haus added a note Aug 6, 2012

The standard for services on fedora seem to be 0644, not 0755, probably because they are loaded by systemctl, and not designed to be invoked directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@puppetcla

CLA Signed by traylenator on 2012-03-17 21:00:00 -0700

@ploubser

Closing since it has been idle for over a year. Feel free to reopen.

@ploubser ploubser closed this Sep 4, 2013
@haus haus added a commit to haus/marionette-collective that referenced this pull request Nov 4, 2013
@haus haus (#17067, #14612, #19319) Templatize and improve the mcollective.spec
Our packaging tools expect to find a redhat spec template in ext/redhat. This
commit copies the current mcollective specfile into an erb file. It also brings
in the work of puppetlabs#41 to
add systemd files for the systemd init system and updates the specfile to use
them on systems with systemd.  Thanks to Steve Traylen (traylenator on github)
for the systemd work included here.
62d8b71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment