Re: stopping cinnamon-started apps at logout

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

 



On 05/12/14 00:52, Wolfgang S. Rupprecht wrote:
> I'd assumed that the apps started by cinnamon when I logged in would
> also be killed when I logged out.  That doesn't seem to be the case for
> non-X11 programs that hang around forever and watch files.  Those
> programs just get passed off to PID 1 when one logs out and continue on
> their merry way till the system reboots.  If one logs in again, another
> instance of the program is started.
>
> The exact program I'm running is a IMAP watcher that watches my remote
> INBOX and grabs the new mail as soon as it arrives.   It would be good
> if it stopped when I logged out.
>
>           /usr/bin/getmail --idle=INBOX
>
> Any ideas?  Do I have to keep track of the PID myself and find a logout
> hook to hang a kill -HUP onto?  Does .bash_logout or .logout even get
> called?
>
>  -wolfgang

In your .bash_logout file you could place a "killall" statement and name the process you want to kill off.  See the killall man page.

-- 
Do not condemn the judgment of another because it differs from your own. You may both be wrong. -- Dandemis
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux