Re: i want to run vtest.sh script when user shutdown his system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yogesh@xxxxxxxxxxxxxxx wrote:
> hi freind
> donot mind if ihave no enough idea about how to ask question
> 
> 
> i have one shell script   /root/vtest.sh
> 
> i want to run this script when user shutdown his/her system
> 
> so where i place this file or what can i do
> 
If you are talking about when they shut down the computer, then,
depending on what the script does, you may be able to move it to
/sbin/halt.local, or you can create a script for /etc/rc.d/init.d
that will be run on shutdown before the halt script. One thing to be
aware of is that when /sbin/halt.local is run, everything except the
root file system and the ramdisk is unmounted.

If you are talking about when a user logs out, then that is a
different matter, and depends on the shell or desktop used, and if
it is a CLI or GUI login.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux