LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-31-2016, 05:51 PM   #31
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Original Poster
Rep: Reputation: 177Reputation: 177

So, here's what I'm trying: reverting back to Upstart, forget about systemd. After some research (e.g. http://www.serverlab.ca/tutorials/li...m-ubuntu-15-2/) I've done:
Code:
$ apt-get install upstart-sysv sysvinit-utils  # don't know if I need sysvinit-utils. Some sites had it, some didn't
$ update-initramfs -u
$ reboot
I've not removed systemd yet. After doing the above, lo and behold, the shutdown script we've been struggling with worked just fine. I've renamed it from /etc/rc6.d/K01rc.local to /ec/rc6.d/K00rc.local to insure that it runs first, and it appears to work. Next is to put my VM shutdown script in there and see if it shuts down gracefully. But there's a bit of a problem ...

While most services seem to work fine with Upstart back in action, I have no lightdm login console. Need to fix that before I can test the VM thing. I've made a separate thread for this issue: http://www.linuxquestions.org/questi...07#post5599007

Last edited by mfoley; 08-31-2016 at 06:01 PM.
 
Old 08-31-2016, 08:13 PM   #32
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
That is why I don't like systemd. network analysis is not simple, nor easy to do. It was why it took almost 7 versions of Fedora with systemd to get it mostly working.
 
Old 09-01-2016, 11:41 AM   #33
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by mfoley View Post
ondoho: where do you keep that script and how is it invoked, software-wise? I.e., what causes the script to run?
i keep it anywhere and it is invoked through openbox menu, that means menu.xml has this in it:
Code:
~snip~
    <item label="Exit"><action name="Execute"><command>~/.config/openbox/scripts/close-all-windows openbox --exit</command></action></item>
    <item label="Reboot"><action name="Execute"><command>~/.config/openbox/scripts/close-all-windows systemctl reboot</command></action></item>
    <item label="Shutdown"><action name="Execute"><command>~/.config/openbox/scripts/close-all-windows systemctl poweroff</command></action></item>
~snip~
 
  


Reply

Tags
shutdow, systemd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Systemd service: AUTOSSH.service does not start at boot, how can I fix this? The_Linux_Machine Linux - Newbie 1 07-06-2016 12:00 PM
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 02:44 PM
systemd service aagaag Linux - Newbie 1 01-18-2016 07:42 PM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration