[systemd-devel] A problem with reboot and halt.

Badiu Mircea Gabriel mircea.badiu at windriver.com
Fri Oct 28 04:47:12 PDT 2011


Hello,

I am using systemd 35 on x86 architecture, and I have a problem with the 
reboot and halt services, don't work very well, only after I type reboot 
twice or three times the system is rebooted. I think that is a process 
or something hang and it takes to long to restart, ot it can't umount 
all devices.

reboot.service
[Unit]
Description=Reboot
DefaultDependencies=no
Requires=shutdown.target umount.target final.target
After=shutdown.target umount.target final.target

[Service]
Type=oneshot
ExecStart=//bin/systemctl --force reboot

halt.service
[Unit]
Description=Halt
DefaultDependencies=no
Requires=shutdown.target umount.target final.target
After=shutdown.target umount.target final.target

[Service]
Type=oneshot
ExecStart=//bin/systemctl --force halt

The option reboot --force works but I need reboot and halt to work properly.

This is the output after typing three times reboot, only the third time 
system is rebooted :

[  742.276718] <27>connmand[193]: Aborting (signal 13)
[  742.335268] <27>connmand[193]: ++++++++ backtrace ++++++++
[  742.401469] <27>connmand[193]: [0]: [0xb77e5400]
[  742.456829] <27>connmand[193]: [1]: [0xb77e5424]
[  742.512103] <27>connmand[193]: [2]: /lib/libc.so.6(writev+0x3c) 
[0x554b8c]
[  742.594492] <27>connmand[193]: [3]: 
/lib/libc.so.6(__vsyslog_chk+0x218) [0x559138]
[  742.685238] <27>connmand[193]: [4]: 
/usr/sbin/connmand(connman_info+0x29) [0x806db59]
[  742.779207] <86>login[338]: pam_unix(login:session): session closed 
for user root
[  742.868966] <27>connmand[193]: [5]: /usr/sbin/connmand() [0x806d363]
[  742.944992] <27>connmand[193]: [6]: [0xb77e5400]
[  743.000475] <27>connmand[193]: [7]: [0xb77e5424]
[  743.055868] <27>connmand[193]: [8]: /lib/libc.so.6(__poll+0x3c) 
[0x5529ac]
[  743.138261] <27>connmand[193]: [9]: 
/lib/libglib-2.0.so.0(g_poll+0x2c) [0x6d5886]
[  743.227908] <27>connmand[193]: [10]: /lib/libglib-2.0.so.0() [0x6ca0b9]
[  743.307143] <27>connmand[193]: [11]: 
/lib/libglib-2.0.so.0(g_main_loop_run+0x221) [0x6ca6bd]
[  743.408278] <27>connmand[193]: [12]: /usr/sbin/connmand() [0x806d770]
[  743.485504] <27>connmand[193]: [13]: 
/lib/libc.so.6(__libc_start_main+0xe7) [0x492bb7]
[  743.580271] <27>connmand[193]: [14]: /usr/sbin/connmand() [0x8052211]
[  743.657432] <27>connmand[193]: +++++++++++++++++++++++++++
[  743.723208] <29>systemd[1]: connman.service: main process exited, 
code=exited, status=1
[  743.819160] <29>systemd[1]: Unit connman.service entered failed state.
[  756.042474] <29>systemd[1]: dev.mount mount process exited, 
code=exited status=1
[  756.131153] <27>systemd[1]: Socket service 
systemd-kmsg-syslogd.service already active, refusing.
[  756.237534] <29>systemd[1]: Job 
systemd-stdout-syslog-bridge.service/start failed with result 'dependency'.
[  758.713468] <29>systemd[1]: dev.mount mount process exited, 
code=exited status=1
[  758.820645] <29>systemd[1]: Shutting down.
[  759.410309] pch_uart 0000:02:0a.2: PCH_UART :pch_uart_startup: using 
uart clock of 192000000
[  759.512497] PCH_UART_STARTUP using clock of 192000000
Sending SIGTERM to remaining processes...
[  759.628487] mthemedaemon/113: potentially unexpected fatal signal 6.
[  759.710255] code at b772a424: 5d 5a 59 c3 00 2e 73 68 73 74 72 74 61 
62 00 2e
[  759.797032] Modules linked in: af_packet mousedev usbhid hid asix 
usbnet ahci libahci snd_hda_codec_realtek libata snd_hda_intel 
snd_hda_codec scsi_mod rtc_cmos ehci_hcd snd_hwdep ohci_hcd rtc_6
[  759.996068]
[  759.996079] Pid: 113, comm: mthemedaemon Not tainted 
2.6.37.6-WR4.1.0.0_standard+ #3 To be filled by O.E.M. To be filled by 
O.E.M./To be filled by O.E.M.
[  759.996098] EIP: 0073:[<b772a424>] EFLAGS: 00200206 CPU: 1
[  759.996114] EIP is at 0xb772a424
[  759.996121] EAX: 00000000 EBX: 00000071 ECX: 00000071 EDX: 00000006
[  759.996129] ESI: 0808e814 EDI: 00610ff4 EBP: bfa4bd8c ESP: bfa4bd74
[  759.996138]  DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b
[  759.996148] Process mthemedaemon (pid: 113, ti=f45fa000 task=f45f6c60 
task.ti=f45fa000)
[  759.996154]
[  759.996159] Call Trace:
Sending SIGKILL to remaining processes...
Unmounting file systems.
Could not unmount /dev: Device or resource busy
Disabling swaps.
[  766.912467] ehci_hcd 0000:02:08.3: PCI INT A disabled
Detaching loop devices.
Detaching DM devices.
[  766.987444] ohci_hcd 0000:02:08.2: PCI INT A disabled
[  767.098104] ohci_hcd 0000:02:08.1: PCI INT A disabled
[  767.158505] ohci_hcd 0000:02:08.0: PCI INT A disabled
[  767.159122] hub 5-0:1.0: unable to enumerate USB device on port 1
[  767.298348] ehci_hcd 0000:02:02.1: PCI INT B disabled
[  767.358728] ohci_hcd 0000:02:02.0: PCI INT B disabled
[  767.419195] Restarting system.
[  767.455590] machine restart

Can anybody help me please?

P.S. systemctl restart reboot.service
        systemctl restart halt.service

are rebooting and halting the system but I need reboot and halt.

Thank you


More information about the systemd-devel mailing list