Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #14006: Move rudder-slapd to a systemd unit #1743

Conversation

amousset
Copy link
Member

@amousset amousset force-pushed the arch_14006/move_rudder_slapd_to_a_systemd_unit branch from 878904d to c1d9076 Compare December 20, 2018 10:24
@amousset
Copy link
Member Author

Commit modified

%config(noreplace) /opt/rudder/etc/openldap/slapd.conf
/etc/init.d/rudder-slapd
/usr/lib/systemd/system/rudder-slapd.service
/opt/rudder/etc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need to add the package-script

@amousset amousset force-pushed the arch_14006/move_rudder_slapd_to_a_systemd_unit branch from c1d9076 to 02a895b Compare December 20, 2018 10:43
@amousset
Copy link
Member Author

Commit modified

sed -i '/^[ \t]*argsfile/d' "${LDAP_CONF}"

# Migration from pre-5.1, moving settings to slapd.conf
if [ -f /etc/default/rudder-slapd ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will the file still be there in a postinst ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question, it seems not, I'll make a copy of the file in preinst to make sure we don't miss it in case of a purge.

@amousset amousset force-pushed the arch_14006/move_rudder_slapd_to_a_systemd_unit branch from 02a895b to 1d07fe2 Compare December 20, 2018 11:00
@amousset
Copy link
Member Author

Commit modified

@amousset amousset force-pushed the arch_14006/move_rudder_slapd_to_a_systemd_unit branch from 1d07fe2 to c58cdb2 Compare December 20, 2018 12:11
@amousset
Copy link
Member Author

Commit modified

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit c58cdb2 into Normation:master Dec 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants