Actions
Bug #12745
closedSSH Configuration Technique on AIX does not reload correctly sshd service when there's been a change
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:
Description
If agent changed the config of SSH, on an AIX, the sshd service is not restarted
Command called is
/usr/bin/stopsrc -s sshd && until /usr/bin/lssrc -s sshd | /usr/bin/grep -q inoperative; do /usr/bin/perl -e 'select(undef,undef,undef,.25)'; done; /usr/bin/startsrc -s sshd
however, the command is not executed within a shell, so the && is seen as an argument of stopsrc - which fails totally:
Q: "...in/stopsrc -s s": 0513-040 Usage is one of: Q: "...in/stopsrc -s s": stopsrc [-h host] [-f | -c] -a Q: "...in/stopsrc -s s": stopsrc [-h host] [-f | -c] -g group_name Q: "...in/stopsrc -s s": stopsrc [-h host] [-f | -c] -s subsystem_name Q: "...in/stopsrc -s s": stopsrc [-h host] [-f | -c] -p subsystem_pid Q: "...in/stopsrc -s s": stopsrc [-h host] [-f] -t subserver_type [-o subserver_object] [-p subsystem_pid] Q: "...in/stopsrc -s s": stopsrc [-h host] [-f] -t subserver_type [-P subserver_pid] [-p subsystem_pid]
we need to run the command within a shell
Updated by Nicolas CHARLES over 6 years ago
- Status changed from New to In progress
Updated by Nicolas CHARLES over 6 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1310
Updated by Rudder Quality Assistant over 6 years ago
- Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
Updated by Nicolas CHARLES over 6 years ago
- Assignee changed from Nicolas CHARLES to Vincent MEMBRÉ
Updated by Rudder Quality Assistant over 6 years ago
- Assignee changed from Vincent MEMBRÉ to Nicolas CHARLES
Updated by Nicolas CHARLES over 6 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset rudder-techniques|64178cf9273ebd6641989f9bd715ee1109af409b.
Updated by Vincent MEMBRÉ over 6 years ago
- Category changed from System techniques to Techniques
Updated by Vincent MEMBRÉ over 6 years ago
- Status changed from Pending release to Released
Actions