Firefox-tmpfs-daemon : sync your mozilla directories to tmpfs

Hi ! I've just written an ugly daemon script to relocate firefox profiles directory to a tmpfs !
http://aur.archlinux.org/packages.php?ID=48746
I know, it does the same as firefox-sync, but I've used another approach : the sync is made at boot and stop time with a small daemon script (though it's not a real daemon).
It uses rsync and can handle multiple users.
There are several advantages :
* the copy is made only at boot and shutdown with rsync, it has no impact on firefox startup time
* a copy is always kept on the disk, and the script can recover from a crash, using the old copy
I use it since last week, and another user helped me to debug, so I think it's ready
You can add the script to your daemon array in /etc/rc.conf to use it automatically :
DAEMONS=(... @firefox-tmpfs ...)
It's easy to use :
* rc.d start firefox-tmpfs : move profiles to tmpfs
* rc.d stop firefox-tmpfs : sync profiles to your disk
* rc.d restart firefox-tmpfs : ...
* rc.d save firefox-tmpfs : sync your profile to your disk (just in case), but do not stop using tmpfs
You can find firefox-tmpfs-daemon on  AUR : http://aur.archlinux.org/packages.php?ID=48746
I hope it will help you, I'd be happy to get some feedback
Last edited by scullder (2011-05-14 13:41:44)

kokoko3k wrote:
Can i set an hourly cron job restart firefox-tmpfs?
I'm asking because i strongly use hibernation on my netbook, but 1/10 of the times it doesn't work and i'm forced to shutdown it "unproperly", so a 'sync online ' (red: while firefox is open/the profile in use) feature would be good.
thanks!
I think it's a bad idea to make a restart while firefox is running, use the save target instead.
rc save firefox-tmpfs
I've never tested intensively this usage so careful
kokoko3k wrote:
-edit-
Here's my firefox.desktop exec line now (i'm using 'timeless' sudo):
sudo /etc/rc.d/firefox-tmpfs start ; firefox %u ; for database in ~/.mozilla/firefox/*/*.sqlite; do echo processing $database... ; sqlite3 $database 'VACUUM;'; done ; sudo /etc/rc.d/firefox-tmpfs stop
One nice addition to your 'daemon' would be the ability to select what users and what profiles to keep in tmpfs.
Anyway it works fine, great
I will make a config file in /etc/default. With the current version, you can change the users var in /etc/rc.d/firefox-tmpfs at line 14.
Change
users="`ls -d -c1 /home/*/.mozilla | cut -d/ -f3`"
With a list of users separated by spaces (should work)
users="username1 username2"
Thanks for testing and using

Similar Messages

  • Anything-sync-daemon - keep ANYTHING in tmpfs and sync'ed

    Quite a few people like and use profile-sync-daemon.  I have received several requests now asking for a more general version that will allow the flexibility of syncing anything from tmpfs <--> hdd and back again.  I just uploaded the first public release of anything-sync-daemon in response to the requests.  I am currently working on the wiki page, but I have already written a full manpage that is included with the util.  As with anything, BACKUP the data you wish to sync before using it.
    What are some example directories you might want to sync to tmpfs?
    /srv/http
    /foo/bar
    /var/lib/monitorix
    AUR Package: https://aur.archlinux.org/packages.php?ID=58263
    Wiki Page: https://wiki.archlinux.org/index.php/An … ync-daemon
    Gitrepo if you just wanna browse the code (it is VERY simplistic): https://github.com/graysky2/anything-sync-daemon
    Last edited by graysky (2012-09-22 15:00:04)

    I'm having sort of troubles: it doesn't seem to mount anything into /shm...
    I told it to keep sync'ed /var/log and my chromium config (yes i don't like to have 2 daemons running, doing the same thing).
    So this is my asd.conf:
    # /etc/asd.conf
    # For documentation, see: https://wiki.archlinux.org/index.php/Anything-sync-daemon
    # Define where data will reside in tmpfs
    # Think hard about this if using utils like bleachbit as it has a nasty habbit
    # of nuking files it identifies as junk in /tmp
    # A safer location for things is actually /dev/shm
    # This location must be mounted to tmpfs and MUST have permissions of 777
    # Use NO trailing backslash!
    TMPFS="/dev/shm"
    # Define the target(s) directories in the WHATTOSYNC array
    # Do NOT define a file! These MUST be directories!
    # Note that the target directories and all subdirs under them will be included
    # In other words, this is recursive
    # Below is an example to wet your appetite
    #WHATTOSYNC=('/var/log' '/srv/http' '/home/foo/bar')
    WHATTOSYNC=('/var/log' '/home/federico/.config/chromium')
    and this is my /etc/mtab:
    rootfs / rootfs rw 0 0
    /dev/root / ext4 rw,noatime,user_xattr,acl,barrier=1,nodelalloc,data=ordered 0 0
    devtmpfs /dev devtmpfs rw,relatime,size=1027028k,nr_inodes=218985,mode=755 0 0
    proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
    sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
    run /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
    devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
    shm /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
    tmpfs /tmp tmpfs rw,nosuid,nodev,noatime,size=614400k 0 0
    /var/tmp /var/tmp tmpfs rw,noatime,nodiratime 0 0
    gvfs-fuse-daemon /home/federico/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=1000,group_id=100 0 0
    So, don't know where is the problem... my /var/log folder is 65Mb, but if i run df -h, then, this is its output:
    File system Dim. Usati Dispon. Uso% Montato su
    rootfs 231G 31G 189G 14% /
    /dev/root 231G 31G 189G 14% /
    devtmpfs 1003M 0 1003M 0% /dev
    run 1004M 344K 1003M 1% /run
    shm 1004M 152K 1003M 1% /dev/shm
    tmpfs 600M 9,4M 591M 2% /tmp
    /var/tmp 1004M 84K 1004M 1% /var/tmp
    Thanks for the help!

  • I d/l your mozilla firefox today and now I get the error 0x80070002 all the time...how do I fix that?

    I downloaded mozilla firefox today and now I get the error 0x80070002 all the time, and I cannot use system restore because of it. How do I fix that so that my computer works right again. I was restoring because after I d/l your mozilla today, I lost all of my contacts in my msn email...just been tearing my hair out over this and it is soo darn frustrating. Tell me how to fix this. Marilyn

    Hi,
    The error is totally unrelated to Firefox. Please see [http://support.microsoft.com/kb/910336 this]. The [http://answers.microsoft.com/en-us Windows OS forum] will also be helpful.
    Please also check the downloaded file by right-clicking > Properties > Digital Signatures, which should say '''Mozilla Corporation''' and '''This digital signature is ok''' in '''Details'''. You can download Firefox from a known site like e.g. https://www.mozilla.org/en-US/firefox/new/
    You can try to Reset Firefox which would hopefully display the missing features, all (contacts, emails, settings etc.) of which are actually stored at the MSN site and are temporarily displayed by Firefox every time the site is accessed.
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • I cant get my itunes librairy and mozilla firefox bookmarks to sync. Help?

    I cant get my itunes librairy and mozilla firefox bookmarks to sync. Help?

    What?
    Well that must be a trick I've missed.
    As far as I'm aware, you cannot sync "the iTunes Library" (the media - songs, videos, etc.) with Firefox, since Firefox's bookmarks are the locations of websites that you've marked in order to access them quickly. iTunes doesn't "visit websites". What am I missing, I'm curious to know?
    What information, in iTunes, are you trying to sync with Firefox bookmarks?

  • I just setup sync for the first time. Now everytime I load firefox a tab called "Your First Sync" will open, or it will load during an internet session...???

    Just installed firefox sync on firefox 18.0...ran the first sync, and now whenever I load firefox, or in several minutes of continuing using firefox, a tab called "Your First Sync" appears...even after closing firefox or the tab. Wondering if I can get some support on this. Thanks

    This may be a problem with preference that aren't saved properly.
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • When i close firefox and then attempt to restart it i get the following message. firefox is alreadt running,but is not responding to open a new window.you must first close the existing firefox process or restart your system.

    i have to restart

    Sounds like Firefox is "hanging at exit". That problem is frequently caused by an Extension or a Plugin. Read all of the following articles.<br /><br />
    #Stop the Firefox process:
    #*[http://kb.mozillazine.org/Kill_application Mozillazine - Kill application]
    #*Windows 7 users click [http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576 here]
    #*Mac users: http://techheavy.com/2011/02/the-mac-task-manager/
    #Why Firefox may hang:
    #*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs] (see Hang at exit)
    #*[http://kb.mozillazine.org/Firefox_hangs Firefox hangs (Mozillazine)] (see Hang at exit and Closing Firefox properly)
    #*[https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding Firefox is already running but is not responding]
    #Use Firefox Safe Mode to find a problem with an Extension or Plugin:
    #*Don't check anything when entering Safe Mode, just continue
    #*If the problem does not occur in Safe Mode it is probably and Extension or Plugin causing the problem
    #*See:
    #**[[Safe Mode]] and [http://kb.mozillazine.org/Safe_Mode Safe Mode (Mozillazine)]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    #**[http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • When I click to open firefox it says that "firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system" and I've tried to shut down and restart my computer but it keeps

    when i click to open firefox it says that "firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." and I've tried to shut down and restart my computer but it keeps showing the same message. I've even uninstalled Firefox and then reinstalled in the hopes that the problem would be solved but it this message is still popping up. What can I do to solve this problem?
    == This happened ==
    Just once or twice
    == I was on facebook trying to upload pictures yesterday. ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; InfoPath.1)

    Do you have a profile lock file in your profile folder? If so, delete it and see if TB runs properly:
    http://kb.mozillazine.org/Profile_in_use#Remove_the_profile_lock_file

  • Doesn't start when starting as administrator. Error Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

    Update firefox, it asked me to update flash, I tried to update flash but it said I had to close firefox. A box came up and said the Flash install would continue when I closed firefox. I closed all firefox windows and no update of flash occurred. I tried relaunching firefox but got the "Doesn't start when starting as administrator. Error Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." message. I rebooted the system, no improvement. I tried to run firefox as administrator and got the same message. Either I find a fix or I won't be able to use firefox and will have to go back to ie.

    -> press '''CTRL''' + '''SHIFT''' + '''ESC''' to Open Task Manager -> Processes tab -> right-click '''firefox.exe''' and click '''End Process Tree''' -> close Task Manager
    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Troubleshooting plugins
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins
    Check and tell if its working.

  • I try to launch firefox get the following message "firefox is already running, but is not resonding. to open a new window, you must first close the existing firefox process, or restart your system" firefox is not running and restart doesn't work

    when I launch firefox get the following message "firefox is already running, but is not resonding. to open a new window, you must first close the existing firefox process, or restart your system" firefox not running and a restart doesn't solve the problem

    Download a fresh Firefox copy and save the file to the desktop.
    *Firefox 12.0.x: http://www.mozilla.org/en-US/firefox/all.html
    Uninstall your current Firefox version, if possible.
    *Do NOT remove personal data when you uninstall your current Firefox version, because all profile folders will be removed and you will also lose your personal data like bookmarks and passwords from profiles of other Firefox versions.
    Remove the Firefox program folder before installing that newly downloaded copy of the Firefox installer.
    *It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    *http://kb.mozillazine.org/Uninstalling_Firefox
    Your bookmarks and other profile data are stored elsewhere in the Firefox Profile Folder and won't be affected by a reinstall, but make sure that you do not select to remove personal data if you uninstall Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    See also:
    *https://support.mozilla.org/kb/Firefox+is+already+running+but+is+not+responding
    *http://kb.mozillazine.org/Profile_in_use
    *http://kb.mozillazine.org/Recovering_a_missing_profile

  • Iget this when I try to open a session....Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.task mngr shows no open firefox processes.

    I get this when I try to open a session....Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.The task manager shows no open Firefox processes.I had two users on this laptop running Firefox and I tried deleting the program on both users. I then downloaded the newest version, installed it and I still get the error message as before. HELP!!!! I loved the browser program when it was working before and would rather use it than other browsers.

    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * https://support.mozilla.com/kb/Firefox+hangs

  • When I try to start Firefox I get Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

    I get this message when I try to start Firefox after first logging on after turning on the computer.
    Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.
    Have rebooted. Works when Administrator logs in, just does this in my user profile. Have also re-intalled. Mo change in my User account.
    Firefox was working fine for the last 3 1/2 years. Any suggestions?

    Firefox is "hanging at exit" when you exit/quit Firefox.<br /><br />
    #Stop the Firefox process:
    #*[http://kb.mozillazine.org/Kill_application Mozillazine - Kill application]
    #*Windows 7 users click [http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576 here]
    #*Mac users: http://techheavy.com/2011/02/the-mac-task-manager/
    #Why Firefox may hang:
    #*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs] (see Hang at exit)
    #*[http://kb.mozillazine.org/Firefox_hangs Firefox hangs (Mozillazine)] (see Hang at exit and Closing Firefox properly)
    #*[https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding Firefox is already running but is not responding]
    #Use Firefox Safe Mode to find a problem with an Extension or Plugin:
    #*Don't check anything when entering Safe Mode, just continue
    #*If the problem does not occur in Safe Mode it is probably and Extension or Plugin causing the problem
    #*See:
    #**[[Safe Mode]] and [http://kb.mozillazine.org/Safe_Mode Safe Mode (Mozillazine)]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    #**[http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. I have a wndiws 7 system and use a Intel core processor. I have restarted several times and still ge this

    Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system. I have a wndows 7 system and use a Intel core processor. I have restarted several times and still ge this error. I have also tried to reinstall firefox and get the same error
    == This happened ==
    Every time Firefox opened
    == today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDS; InfoPath.2; .NET4.0C; AskTbUT2V5/5.8.0.12304)

    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: [http://kb.mozillazine.org/Kill_application Kill Application]
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    [[Firefox hangs]]
    [http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit]
    [[Firefox is already running but is not responding]]
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • I consistently get this messsage and have to restart the system - "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system". When I look at the Task Manager no Fire

    I consistently get this message and have to re'boot my system. "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system"
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 3.0.04506; InfoPath.2; Media Center PC 5.0; SLCC1)

    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: [http://kb.mozillazine.org/Kill_application Kill Application]
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    [[Firefox hangs]]
    [http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit]
    [[Firefox is already running but is not responding]]
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • When i exit firefox &try to reopen the message is showing as Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.why this happens even i close it by exit.

    after i exit firefox & tried to open,it is not opening,instead this message is coming as 'Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.'kindly help me.everytime to open i have to go to task manager & stop the process.

    [https://support.mozilla.com/en-US/kb/Firefox%20hangs#w_firefox-hangs-when-you-quit-it Firefox hangs when you close it]

  • Sometimes when I close Firefox and try to open it in few moments it shows me message "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." However, I haven't o

    Sometimes when I close Firefox and try to open it in few moments it shows me message "Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system." However, I haven't opened any additional Firefox related programs, and previous Firefox is closed. First I though it is because of my computer, but then I discovered that other people have the same problem as well
    == This happened ==
    A few times a week
    == some 2 month ago ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 3.0.30729)

    Hi Andis.
    First of all, this is completely normal behavior, although it's a bit irritating, I know. What happens is that when you close Firefox, despite the window disappearing right there and then, Firefox keeps running for a little bit until the whole closing procedure is completed. This can take a fraction of a second on fast computers, or can take a few seconds on slow computers or when Firefox is storing a large session (if you save your tabs). All you have to do is wait a bit until Firefox closes, and then open it again.
    To see if it's still running, you can press CTRL+SHIFT+ESC and then, under the Processes tab, you can see if firefox.exe is still there. If it's taking an unusual amount of time to close (which happens very rarely, and only if the browser freezes on exit), you can force the application to terminate from this application (task manager).
    Firefox 4.0 will reduce by 97% the time it takes firefox.exe to close, so this problem will be basically erased for Firefox's next version.
    Until then, I can recommend you this extension, which helps you restart your browser more easily and without bothering about closing times:
    https://addons.mozilla.org/en-US/firefox/addon/3559/
    Hopefully this will help.

Maybe you are looking for