https://bugzilla.novell.com/show_bug.cgi?id=724777
https://bugzilla.novell.com/show_bug.cgi?id=724777#c5
Marius Tomaschewski changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
CC| |mt@suse.com
InfoProvider| |fcrozat@suse.com
--- Comment #5 from Marius Tomaschewski 2011-11-15 13:32:20 UTC ---
Lars,
maybe you may need to add some checks for systemd -- these functions
may be usefull:
systemd_running () {
# We simply test whether systemd cgroup hierarchy is mounted
# where we return 0, non-zero if not.
/bin/mountpoint -q /sys/fs/cgroup/systemd
}
systemd_booting () {
# returns 0 when we boot, 1 in running system
systemctl show -p ActiveState default.target | grep -qi inactive
}
Perhaps it makes sense to avoid the redirections and call the
script using /./etc/init.d/nmb force-reload instead.
The LSB service is not even active:
# find /etc/init.d/ -name "*nmb"
/etc/init.d/nmb
# systemctl status nmb.service
nmb.service - LSB: Samba NetBIOS naming service over IP
Loaded: loaded (/etc/init.d/nmb)
Active: inactive (dead)
CGroup: name=systemd:/system/nmb.service
I think, the problem is that there are multiple nested redirections:
/etc/init.d/nmb force-reload > systemctl force-reload nmb.service
=> /etc/init.d/nmb force-reload # execution
# $0 try-restart
/etc/init.d/nmb try-restart -> systemctl try-restart nmb.service
=> /etc/init.d/nmb try-restart # execution
# $0 status
..
It seems to have something to do with (blocked) systemd signal
handling.
The systemctl hangs in "restart_syscall(<..." (until I kill it):
2365 restart_syscall(<... resuming interrupted call ...>) = ?
ERESTART_RESTARTBLOCK (To be restarted)
2365 --- {si_signo=SIGTERM, si_code=SI_USER, si_pid=5500, si_uid=0,
si_value={int=3319514146, ptr=0x7fefc5dbc422}} (Terminated) ---
BTW: After I've killed it, /./etc/init.d/network status returns
success again, but not /etc/init.d/network status as systemctl
provides the cached systemd results. A "systemctl reset-failed
network.service" does not have any effect (does not call "status"
of the LSB service to refresh)...
Frederic, any idea what we can do here?
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.