Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

'../10-openrc-status' exited with error status 1

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
alexcortes
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Sun Dec 18, 2011 10:38 pm
Location: Rio de Janeiro, Brazil

'../10-openrc-status' exited with error status 1

  • Quote

Post by alexcortes » Thu Jun 07, 2012 8:36 pm

On shutdown networkmanager return this message when the services stoping:

Code: Select all

nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/10-openrc-status' exited with error status 1
10-openrc-status:

Code: Select all

#!/bin/sh
# Copyright (c) 2012 Alexandre Rostovtsev
# Released under the 2-clause BSD license.

# Ensures that the NetworkManager OpenRC service is marked as started and
# providing net only when it has a successful connection.

# Ensure rc-service is in PATH
PATH="${PATH}:/sbin:/usr/sbin"

# Exit if the NetworkManager OpenRC service is not running
rc-service NetworkManager status 2>&1 | grep -Eq "status: (starting|started|inactive|stopping)" || exit 0

# Call rc-service in background mode so that the start/stop functions update
# NetworkManager service status to started or inactive instead of actually
# starting or stopping the daemon
export IN_BACKGROUND=YES

case "$2" in
    up) nm-online -t 0 && exec rc-service NetworkManager start ;;
    down) nm-online -t 0 || exec rc-service NetworkManager stop ;;
    pre-sleep) exec rc-service NetworkManager stop ;;
esac
NetworkManager seems working as well, but I don't know why it show this message only during the shutdown.

Thanks!!!
Top
Rexilion
Veteran
Veteran
User avatar
Posts: 1044
Joined: Tue Mar 17, 2009 10:25 am

  • Quote

Post by Rexilion » Fri Jun 08, 2012 3:04 pm

Are you using systemd maybe? The only thing I could think of is openrc not doing something properly.

Try running the command:
exec rc-service NetworkManager stop
As I suspect that is the failing culprit. You can check it's return status (the error 1), by doing
echo $?
Directly after the previous command. If the last command prints a '1', then you have likely found the failing command. Then we could look further.
fs/super.c: "Self-destruct in 5 seconds. Have a nice day...\n"
Top
poncho
Tux's lil' helper
Tux's lil' helper
Posts: 92
Joined: Sun Mar 06, 2011 11:21 am

  • Quote

Post by poncho » Fri Jun 08, 2012 7:30 pm

net-misc/networkmanager-0.9.4.0-r2 hangs on 10-openrc-status
https://bugs.gentoo.org/show_bug.cgi?id=417283

workaround in above bug fixed this issue for me...
Top
alexcortes
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Sun Dec 18, 2011 10:38 pm
Location: Rio de Janeiro, Brazil

  • Quote

Post by alexcortes » Fri Jun 08, 2012 10:44 pm

Rexilion wrote:Are you using systemd maybe? The only thing I could think of is openrc not doing something properly.

Try running the command:
exec rc-service NetworkManager stop
As I suspect that is the failing culprit. You can check it's return status (the error 1), by doing
echo $?
Directly after the previous command. If the last command prints a '1', then you have likely found the failing command. Then we could look further.
I'm not using systemd...

The 'echo $?' command return '1'.
net-misc/networkmanager-0.9.4.0-r2 hangs on 10-openrc-status
https://bugs.gentoo.org/show_bug.cgi?id=417283

workaround in above bug fixed this issue for me...
Not fixed here. :(

Thanks!!!
Top
Rexilion
Veteran
Veteran
User avatar
Posts: 1044
Joined: Tue Mar 17, 2009 10:25 am

  • Quote

Post by Rexilion » Sat Jun 09, 2012 7:17 am

The bug references to a change in behaviour of nm-applet. It has nothing to do with a failing command when shutting down.

Could you please post the output of:
strace rc-service NetworkManager stop
Please? (strace is in the 'strace' package)
fs/super.c: "Self-destruct in 5 seconds. Have a nice day...\n"
Top
alexcortes
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Sun Dec 18, 2011 10:38 pm
Location: Rio de Janeiro, Brazil

  • Quote

Post by alexcortes » Sun Jun 10, 2012 12:30 pm

Hi,


My HDD die, I will back when I install in the new HD. :cry:


Thanks!
Top
Rexilion
Veteran
Veteran
User avatar
Posts: 1044
Joined: Tue Mar 17, 2009 10:25 am

  • Quote

Post by Rexilion » Sun Jun 10, 2012 12:48 pm

Bad things happen, we will wait :)
fs/super.c: "Self-destruct in 5 seconds. Have a nice day...\n"
Top
alexcortes
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Sun Dec 18, 2011 10:38 pm
Location: Rio de Janeiro, Brazil

  • Quote

Post by alexcortes » Thu Jun 14, 2012 7:37 pm

Hello!

I'm back!!! :D

I need to make 1 correction: that message is not being showed when NetworkManager stoping, but during d-bus stoping.

NetworkManager:
rc-service NetworkManager stop
* Stopping sshd ... [ ok ]
* Stopping squid ...
* Waiting for squid to shutdown ................ [ ok ]
* samba -> stop: smbd ... [ ok ]
* samba -> stop: nmbd ...
* start-stop-daemon: 2 process(es) refused to stop [ !! ]
* Unmounting network filesystems ... [ ok ]
* Stopping chrooted named ...
* Umounting chroot dirs ...
* umounting /chroot/dns/usr/share/GeoIP ... [ ok ]
* umounting /chroot/dns/etc/bind ... [ ok ]
* umounting /chroot/dns/var/log/named ... [ ok ]
* umounting /chroot/dns/var/bind ... [ ok ]
* Stopping NetworkManager ...
echo $?
130
D-Bus:
rc-service dbus stop
* Stopping cupsd ...
* Stopping squid ...
* Stopping NetworkManager ...
* Stopping D-BUS system messagebus ... [ ok ]
echo $?
0
Thanks again! :)
Top
alexcortes
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Sun Dec 18, 2011 10:38 pm
Location: Rio de Janeiro, Brazil

  • Quote

Post by alexcortes » Thu Jun 14, 2012 7:38 pm

Hello!

I'm back!!! :D

I need to make 1 correction: that message is not being showed when NetworkManager stoping, but during d-bus stoping.

NetworkManager:
rc-service NetworkManager stop
* Stopping sshd ... [ ok ]
* Stopping squid ...
* Waiting for squid to shutdown ................ [ ok ]
* samba -> stop: smbd ... [ ok ]
* samba -> stop: nmbd ...
* start-stop-daemon: 2 process(es) refused to stop [ !! ]
* Unmounting network filesystems ... [ ok ]
* Stopping chrooted named ...
* Umounting chroot dirs ...
* umounting /chroot/dns/usr/share/GeoIP ... [ ok ]
* umounting /chroot/dns/etc/bind ... [ ok ]
* umounting /chroot/dns/var/log/named ... [ ok ]
* umounting /chroot/dns/var/bind ... [ ok ]
* Stopping NetworkManager ...
echo $?
130
D-Bus:
rc-service dbus stop
* Stopping cupsd ...
* Stopping squid ...
* Stopping NetworkManager ...
* Stopping D-BUS system messagebus ... [ ok ]
echo $?
0
Thanks again! :)
Top
Rexilion
Veteran
Veteran
User avatar
Posts: 1044
Joined: Tue Mar 17, 2009 10:25 am

  • Quote

Post by Rexilion » Thu Jun 14, 2012 7:55 pm

Could you be more specific, I don't see it in your quotes above..
fs/super.c: "Self-destruct in 5 seconds. Have a nice day...\n"
Top
alexcortes
Apprentice
Apprentice
User avatar
Posts: 205
Joined: Sun Dec 18, 2011 10:38 pm
Location: Rio de Janeiro, Brazil

  • Quote

Post by alexcortes » Thu Jun 14, 2012 10:10 pm

I take a shot of my display and then I can take all message. But I'm not understanding why it's only happens during shutdown.

If I simply stop the service, no error message appear...

Code: Select all

* Stopping D-BUS system messagebus ...
nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/10-openrc-status' exited with error status 1
nm-dispatcher.action: Disconnected from the system bus, exiting.
I'm thinking about to leave that error message...
Top
Post Reply

11 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic