HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2013-08-10 37b3643db122864784956d1deceea52b59e2266d
wait for kill
1 files modified
3 ■■■■ changed files
hsarback/src/de/hsadmin/mods/user/UnixUserProcessorFactory.java 3 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/user/UnixUserProcessorFactory.java
@@ -7,7 +7,6 @@
import de.hsadmin.core.qserv.EntityProcessorFactory;
import de.hsadmin.core.qserv.Processor;
import de.hsadmin.core.qserv.ShellProcessor;
import de.hsadmin.hostsharing.QuotaLimit;
/**
 * Factory class which creates Processor instances for dealing with UNIX user
@@ -57,7 +56,7 @@
        UnixUser user = (UnixUser) entity;
        String uid = user.getName();
        if (uid != null && uid.length() > 4) {
            Processor killProcessesProc = new ShellProcessor("killall -u " + uid + " || echo -n 'no processes'");
            Processor killProcessesProc = new ShellProcessor("killall -u " + uid + " && sleep 2 || echo -n 'no processes'");
            Processor userdelProc = null;
            if (user.isDefaultHomedir()) {
                userdelProc = new ShellProcessor("userdel " + uid + " && rm -rf '" + user.getHomedir() + "'");