Hi, I have same problem, when running systemctl stop/start from background bash script...
18581 pts/0 S 0:00 \_ su - 18582 pts/0 S 0:00 \_ -bash 18668 pts/0 S 0:00 \_ /usr/bin/bash /sbin/backupninja -d --run /etc/backup.d/30.redis-restore.sh 18760 pts/0 S 0:00 | \_ /usr/bin/bash /sbin/backupninja -d --run /etc/backup.d/30.redis-restore.sh 18762 pts/0 S 0:00 | | \_ /usr/bin/bash /sbin/backupninja -d --run /etc/backup.d/30.redis-restore.sh 18763 pts/0 S 0:00 | | \_ systemctl stop redis_6379 18764 pts/0 S 0:00 | | \_ /usr/bin/systemd-tty-ask-password-agent --watch 18761 pts/0 S 0:00 | \_ /usr/bin/bash /sbin/backupninja -d --run /etc/backup.d/30.redis-restore.sh the process just hangs. I noticed that "systemctl daemon-reexec" just kill somehow last staled process, if I have second staled process. This is the output after daemon-reexec: --- Warning! D-Bus connection terminated. Disconnected from bus. redis_6379.service - SYSV: Redis is a persistent key-value database Loaded: loaded (/etc/rc.d/init.d/redis_6379) Active: deactivating (stop) since Tue 2015-11-24 00:49:05 EET; 8min ago Control: 17618 (redis_6379) CGroup: /system.slice/redis_6379.service ├─17263 /usr/local/bin/redis-server *:6379 └─control ├─17618 /bin/sh /etc/rc.d/init.d/redis_6379 stop └─19422 sleep 1 Nov 24 00:57:53 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:57:54 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:57:55 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:57:56 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:57:57 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:57:58 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:57:59 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:58:00 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:58:01 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:58:02 offmedia-bms-stage.localdomain redis_6379[17618]: Waiting for Redis to shutdown ... Nov 24 00:58:03 offmedia-bms-stage.localdomain systemd[1]: Starting SYSV: Redis is a persistent key-value database... Info: <<<< finished action /etc/backup.d/30.redis-restore.sh: SUCCESS Debug: send report to root Info: FINISHED: 1 actions run. 0 fatal. 0 error. 0 warning. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1456789 Title: restarting services hangs on systemd-tty-ask-password-agent To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1456789/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
