LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 04-26-2014, 04:32 PM   #1
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 372

Rep: Reputation: 65
How would I make/do/move GTK+/pango to a cron job?


I read on another thread that someone was planning on doing this, by making a cron job and/or script to take the GTK+/pango update part out of Rc.M to speed up the boot.

I too have a pretty big slow-down during boot at the GTK+/pango part of boot and would like to make that a cromn job to be checked maybe once a week or something.

Any ideas how to do this? I'm no programmer of any sort, just a simple user on a single computer.
 
Old 04-26-2014, 05:28 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0/14.1
Posts: 3,482

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
* As root, use a text editor to open the /etc/rc.d/rc.M.
* Save As /etc/cron.daily/pango.
* Delete everything in the newly saved /etc/cron.daily/pango except the header and the pango snippets.
* Save.

You should end up with something like this:

Code:
#!/bin/sh
# /etc/cron.daily/pango

# These GTK+/pango files need to be kept up to date for
# proper input method, pixbuf loaders, and font support.
if [ -x /usr/bin/update-gtk-immodules ]; then
  /usr/bin/update-gtk-immodules --verbose
fi
if [ -x /usr/bin/update-gdk-pixbuf-loaders ]; then
  /usr/bin/update-gdk-pixbuf-loaders --verbose
fi
if [ -x /usr/bin/update-pango-querymodules ]; then
  /usr/bin/update-pango-querymodules --verbose
fi

# All done.
Then be sure to comment out the same snippet in /etc/rc.d/rc.M.
 
5 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cron job to create and move backup from ubuntu to windows. onlykishore07 Linux - Newbie 1 06-15-2010 01:49 PM
How to make my cron job run ? henkoegema Linux - Software 3 12-17-2009 04:57 AM
how to make root cron job to send email if there is output mirror51 Linux - Newbie 3 08-12-2009 01:01 AM
How to make a cron job Avatar Linux - Newbie 10 03-09-2007 10:54 AM
how to make a simple code for just restarting Apache via a Cron job hsa Programming 1 08-22-2005 04:15 AM


All times are GMT -5. The time now is 02:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration