top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

rc.local for shutdown?

0 votes
26 views

You can put random stuff to do at boot in /etc/rc.d/rc.local and it will get run last thing at boot time.

Just out of curiosity, is there an equivalent file you can get to run just before everything else at reboot or
shutdown time?

posted Jun 21, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

+1 vote
 
Best answer

You can do this by making a systemd service unit which triggers on the shutdown, reboot, and halt targets. See http://unix.stackexchange.com/q/39226/2511 for some examples.

answer Jun 21, 2013 by anonymous
Similar Questions
+1 vote

Through VM have installed RHEL6.5 on Windows 7. From VM I can ping other systems, but from other systems I can not ping local VM?

ifconfig shows only 2 interface,
1) etho that is 192.168.180.1
2) lo that is 127.0.0.0

+4 votes

Assume you have the conditions (one AS, etc.) to allow RC to be optional, does the RFC permit one side (IPSP SE mode for example) to still send an RC and the other to not include an RC? I think the answer is yes, but I can't find an explicit reference permitting it.


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...