Issue #4328 has been updated by Roman Chyla.
It happens while the service is already running. I thought this was not a bug, but if you insist... ;) <pre> [test@puppet0 ~]$ puppet --version 3.1.0 [test@puppet0 ~]$ cat /etc/redhat-release CentOS release 6.3 (Final) Error: Could not set home on user[jenkins]: Execution of '/usr/sbin/usermod -d /var/lib/jenkins jenkins' returned 8: usermod: user jenkins is currently logged in </pre> ---------------------------------------- Bug #4328: modifying user fails if user is logged in https://projects.puppetlabs.com/issues/4328#change-83768 Author: Klavs Klavsen Status: Needs More Information Priority: Normal Assignee: Nigel Kersten Category: Target version: Affected Puppet version: 2.7.6 Keywords: Branch: Just noticed (on Ubuntu 10.04 - probably valid for more OS'es) - that puppet failed to change a users homedir (the nagios user in this case) - and usermod failed to do so, because the user was logged in (the nrpe service was running). To fix this, one way would be to have a "pre-exec" and "post-exec" hook - which in this case, would be to stop and start the relevant service. or perhaps some "obstruction" parameter - where one could define the Service["nrpe"] as an obstruction (which would mean puppet would stop it before and start it again after - if it was indeed stopped by puppet beforehand). -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
