Webhuis / Cfengine-debian

Intermediate Debian repository for continous upgrade of Cfengine.
Other
8 stars 7 forks source link

Systemd init script #54

Closed ballock closed 9 years ago

ballock commented 10 years ago

As it was decided by both Debian and Ubuntu to switch to Systemd init, we need a systemd-compliant init script.

tzz commented 10 years ago

Please review https://dev.cfengine.com/issues/5414 since the SUSE maintainer has kindly written the systemd init and identified some issues already. @kkaempf is it OK to use the same init scripts for both cases, minimizing the maintenance work for both sides?

bahamat commented 10 years ago

I agree. We should reuse that one if possible. Is it or will it be included with core?

tzz commented 10 years ago

It is in master but not 3.6.x. Also it lives in contrib which is not distributed with the packages. So for the 3.6.0 release it will need to be manually included and used by the Debian and SUSE maintainers, but can come from that authoritative place so we have just one version.

kkaempf commented 10 years ago

@tzz the .service scripts should be systemd-specific, not SUSE-specific. I hope we can make them generic and cross-distribution

tzz commented 10 years ago

What functional testing is needed on Debian for systemd support?

bahamat commented 10 years ago

I think we just need to make sure that cf-execd, cf-serverd, and cf-monitord can start up and shut down.

Reload should probably either be a nop or aliased to restarting since there's no real notion of re-reading the config.

tzz commented 10 years ago

please watch and add your vote to https://dev.cfengine.com/issues/5243

bahamat commented 10 years ago

I can log in, but I get 403 trying to access that issue. I seem to be able to access other issues.

tzz commented 10 years ago

I've now made the ticket public, sorry about that.

bahamat commented 10 years ago

This has an upstream target of 3.7, so won't be available for Jessie.

We can patch in the following examples: https://build.opensuse.org/package/view_file/systemsmanagement/cfengine/cf-serverd.service?expand=1 https://build.opensuse.org/package/view_file/systemsmanagement/cfengine/cf-execd.service?expand=1 https://build.opensuse.org/package/view_file/systemsmanagement/cfengine/cf-monitord.service?expand=1

bahamat commented 9 years ago

These are now included in upstream. They'll be pulled in during the next major release.