Bug #3561
closed
Cron still restarts all the time
Added by Matthieu CERDA over 11 years ago.
Updated almost 9 years ago.
Description
Cron still restarts all the time because the anchors do not work in regexps.
- Status changed from New to Pending technical review
- % Done changed from 0 to 100
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/114
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
OK, it turns out that CFEngine matches this regex against the whole ps output line, ie something like this:
root 20635 1 20635 0.0 0.1 22428 19 1048 1 11:43 00:00:00 /usr/sbin/cron
So we can use end-anchored regexes (with blabla$) but not start-anchored regexes on the process name (ie no ^/usr/sbin/...).
I'm taking over this PR to rework it.
- Status changed from Pending technical review to Pending release
Applied in changeset commit:99423088590287a1f1f2d7b3452a03d9edce7430.
Applied in changeset commit:c0a4701c61736259d5a35923100eff833543a011.
- Status changed from Pending release to Pending technical review
- Pull Request changed from https://github.com/Normation/rudder-techniques/pull/114 to https://github.com/Normation/rudder-techniques/pull/117
- Status changed from Pending technical review to Pending release
- Status changed from Pending release to Released
- Project changed from 24 to Rudder
- Category changed from Techniques to Techniques
- Target version changed from 2.6.0 to 2.4.5
Also available in: Atom
PDF