Accepting request 207925 from Base:System
- Stop any systemd user manager instance in case a user entry will be deleted (bnc#849870). Nevertheless a running process requires the option --force for the userdel command. OBS-URL: https://build.opensuse.org/request/show/207925 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/shadow?expand=0&rev=9
This commit is contained in:
commit
634dd6efcb
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 22 10:15:25 UTC 2013 - werner@suse.de
|
||||
|
||||
- Stop any systemd user manager instance in case a user entry will
|
||||
be deleted (bnc#849870). Nevertheless a running process requires
|
||||
the option --force for the userdel command.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 12 14:47:30 CET 2013 - kukuk@suse.de
|
||||
|
||||
|
@ -23,6 +23,10 @@ fi
|
||||
# Remove cron jobs
|
||||
test -x /usr/bin/crontab && /usr/bin/crontab -r -u $1
|
||||
|
||||
# Stop systemd user jobs, even this requires --force
|
||||
id=$(id -u $1)
|
||||
systemctl stop user@${id}.service > /dev/null 2>&1 &
|
||||
|
||||
# All done.
|
||||
exit 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user