LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-15-2024, 06:30 PM   #1
lostintime
Member
 
Registered: Dec 2021
Posts: 212

Rep: Reputation: Disabled
/bin/elogind-inhibit


I'm looking for Slackware examples using /bin/elogind-inhibit to cancel/abort a reboot/shutdown. In days of lore this could be done with /sbin/shutdown -c.

Much of what I find online about inhibiting is about systemd and unit files.

I've had only intermittent success adding a script in /etc/elogind/system-shutdown.

I want to avoid terminating various processes. If any such processes are running then fully cancel the reboot/shutdown. No timeouts or delays. Something like:

* loginctl reboot|shutdown initiates by whatever method.
* By design, loginctl runs a script in /etc/elogind/system-shutdown where the script tests for various running processes.
* If any such process is found the script fully cancels the reboot|halt.
* Adding log entries would be nice.

Probably some kind of flow chart how loginctl runs would be helpful.

I'm not interesting is script writing help. Only how to cancel reboot|shutdown with loginctl now controlling things.

Thanks.

Edit: I am able to detect processes using log entries, but the reboot|halt always launches anyway. The timeout/delay seems to be 25 seconds. Testing is all in runlevel 3 so no complications from running X.

Last edited by lostintime; 02-15-2024 at 06:57 PM.
 
  


Reply



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
Inhibit GTK verbose messages when running GTK/Gnome applications from terminal d1s4st3r Linux - Software 1 11-10-2009 10:33 PM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 08:33 AM
avast inhibit STARTTLS on client MUA hua Linux - Server 1 08-09-2009 11:03 PM
Copy inhibit for RedHat AS 3.0? ssolina Linux - Security 3 05-25-2005 08:35 PM
I need to inhibit outgoing web traffic on the firewall, and leave only Squid, How? mfeoli Linux - Networking 2 02-06-2004 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:40 PM.

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