touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #79271
[Bug 1456789] [NEW] Unable to restart services from scripts
Public bug reported:
I have a script run as root from cron that tweaks smb.conf and restarts
smbd and winbind. Problem is, starting today after working perfectly up
till yesterday, this script now hangs on Ubuntu 15.04. When run from
cron, the process tree looks like this:
service smbd restart
\_ systemctl restart smbd.service
\_ /bin/systemd-tty-ask-password-agent --watch
\_ /usr/bin/pkttyagent --notify-fd 5 --fallback
Run from a shell via sudo, same thing except the process tree
(obviously) includes the sudo command. It times out after 5 minutes,
causing the script to fail. If I manually kill the processes, it fails
faster.
The simplest possible scripts that reproduce this, run as root or
through cron or via sudo, are:
#!/bin/sh
service smbd restart
#!/bin/sh
systemctl restart smbd.service
Using 'service', this works perfectly on Ubuntu 14.04 and 14.10, and
until this morning worked perfectly on 15.04 as well.
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Ubuntu 15.04
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
systemd 219-7ubuntu5
samba 2:4.1.13+dfsg-4ubuntu3
3) What you expected to happen
Services to restart
4) What happened instead
Services didn't restart, 'systemctl' hung
** Affects: systemd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1456789
Title:
Unable to restart services from scripts
Status in systemd package in Ubuntu:
New
Bug description:
I have a script run as root from cron that tweaks smb.conf and
restarts smbd and winbind. Problem is, starting today after working
perfectly up till yesterday, this script now hangs on Ubuntu 15.04.
When run from cron, the process tree looks like this:
service smbd restart
\_ systemctl restart smbd.service
\_ /bin/systemd-tty-ask-password-agent --watch
\_ /usr/bin/pkttyagent --notify-fd 5 --fallback
Run from a shell via sudo, same thing except the process tree
(obviously) includes the sudo command. It times out after 5 minutes,
causing the script to fail. If I manually kill the processes, it fails
faster.
The simplest possible scripts that reproduce this, run as root or
through cron or via sudo, are:
#!/bin/sh
service smbd restart
#!/bin/sh
systemctl restart smbd.service
Using 'service', this works perfectly on Ubuntu 14.04 and 14.10, and
until this morning worked perfectly on 15.04 as well.
1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> About Ubuntu
Ubuntu 15.04
2) The version of the package you are using, via 'apt-cache policy pkgname' or by checking in Software Center
systemd 219-7ubuntu5
samba 2:4.1.13+dfsg-4ubuntu3
3) What you expected to happen
Services to restart
4) What happened instead
Services didn't restart, 'systemctl' hung
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1456789/+subscriptions
Follow ups
-
[Bug 1456789] Re: restarting services hangs on systemd-tty-ask-password-agent
From: t0d0r, 2015-11-23
-
[Bug 1456789] Re: restarting services hangs on systemd-tty-ask-password-agent
From: Michael Thayer, 2015-09-10
-
[Bug 1456789] Re: restarting services hangs on systemd-tty-ask-password-agent
From: Michael Thayer, 2015-09-10
-
[Bug 1456789] Re: restarting services hangs on systemd-tty-ask-password-agent
From: Bug Watch Updater, 2015-07-09
-
[Bug 1456789] Re: restarting services hangs on systemd-tty-ask-password-agent
From: Martin Pitt, 2015-07-09
-
[Bug 1456789] Re: restarting services hangs on systemd-tty-ask-password-agent
From: Joel Goguen, 2015-06-15
-
[Bug 1456789] Re: restarting services hangs on systemd-tty-ask-password-agent
From: Martin Pitt, 2015-06-13
-
[Bug 1456789] Re: restarting services hangs on systemd-tty-ask-password-agent
From: Joel Goguen, 2015-06-12
-
[Bug 1456789] Re: restarting services hangs on systemd-tty-ask-password-agent
From: Martin Pitt, 2015-06-12
-
[Bug 1456789] Re: Unable to restart services from scripts
From: Martin Pitt, 2015-06-12
-
[Bug 1456789] Re: Unable to restart services from scripts
From: Joel Goguen, 2015-05-19
-
[Bug 1456789] [NEW] Unable to restart services from scripts
From: Joel Goguen, 2015-05-19
References