LinuxQuestions.org
Register a domain and help support LQ
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 09-21-2010, 03:12 PM   #16
harryhaller
Member
 
Registered: Sep 2004
Posts: 429

Rep: Reputation: Disabled
Wink man crontab


Quote:
Originally Posted by vdemuth View Post
What I would like to do, and it's a pound to a pinch of salt someone here will tell me how, is to run that script automatically, then to somehow have it tagged as having been run, and avoid running it fot the next X number of boots, where X=some arbitrary number I can assign, maybe via a .conf file of some sort.
Anyone any suggestions?
Read the crontab man pages and I think you'll find what you are looking for, e.g.:
Quote:
# run every day at 11 am, appending all output to a file
0 11 * * * date >> /var/log/date-output 2>&1
Crontab gives an incredibly fine-grained control over running jobs, including being able to check the last time that a job was run, whether it was run successfully or not, etc.

Code:
man crontab ;)

Last edited by harryhaller; 09-21-2010 at 03:16 PM.
 
Old 09-21-2010, 03:15 PM   #17
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Original Poster
Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by theCapitain View Post
Hi,
I've followed the suggestions pointed out in this thread, beside putting in background the start of some daemon I've put part of rc.M into an executable saved in cron.daily like explained by Woodsman obtaining a considerable reduction in boot time. Now I wander if there is a way of knowing if and when this cron's commands are executed just to be sure that I've done everything properly. Can someone give me instructions?
As root, run 'crontab -l'.

I guess I could do that as well and put all of this in cron daily or weekly, but I can also just run it when it is needed.
 
Old 09-22-2010, 06:41 PM   #18
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 422

Rep: Reputation: 45
Does anyone have ever tried upstart or some thing like that?
 
Old 09-22-2010, 08:09 PM   #19
GazL
Senior Member
 
Registered: May 2008
Posts: 3,392

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
No I don't like the Upstart concept. Event driven with rules based on dependencies! I'll pass.

I don't care for the possibility of manually shutting some service down and then finding that it triggers Upstart in to ending something else I didn't necessarily want to stop. The risk and complexity it introduces are simply not worth the 20-40 seconds or so it might save on a boot.


Interestingly, I was just reading about systemd on lwn.net

It seems very clever, but again, perhaps a little too clever. I'll take slow and reliable.

Last edited by GazL; 09-22-2010 at 08:11 PM.
 
1 members found this post helpful.
Old 09-23-2010, 01:11 AM   #20
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 422

Rep: Reputation: 45
It seems most slack people don't like dependencies. However, there is dependency in our init system. For example, you cannot run rc.M before rc.S. The root cause we have sequence is dependencies between each component.

But I totally agree that introduce a complex core component in order to save 20~30 sec boot time may not be a good trade. Especially for the one who once boot system up would keep it going for days untill *have* to shut it down. But I think for the people who really seeking for extreme boot up time, you can give upstart a try. (BTW, the boot time of Ubuntu *really* impressed me a lot. It feels only seconds to be into a ready desktop)

For systemd, I heard it has been put off untill FC15. Even Fedora people does not accept it, what else can we do?
 
Old 09-23-2010, 02:13 AM   #21
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 490

Rep: Reputation: 35
If the tips from here are correct, why don't Pat use it in Slackware by default?
 
Old 09-23-2010, 04:00 AM   #22
dc_eros
Member
 
Registered: Nov 2006
Distribution: Slackware
Posts: 292

Rep: Reputation: 39
I have used that house-cleaning stuff. However, there are times when new libs are newly installed but still the system cannot load that shared lib because the updating takes place once a day - if you set the house cleaning daily.

I have rebooted several times but then I discovered that all I need to do is run ldconfig.

It may be annoying to others when it is included in Slackware by default.
 
Old 12-11-2010, 12:04 PM   #23
kurtwall
LQ Newbie
 
Registered: Dec 2010
Location: In an apartment
Distribution: Slackware 13.1
Posts: 12

Rep: Reputation: 1
All of this work just to shave 30 seconds off the boot time? Unless you're rebooting a couple of dozen times a day at the minimum, is it really worth it? Seriously? Bragging rights for the fastest boot time hardly seems to justify the effort.
 
1 members found this post helpful.
Old 12-11-2010, 02:17 PM   #24
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Original Poster
Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I don't know what my boot time is, but it's fast enough for me It was excessively long tho, before I tweaked it.
 
Old 12-11-2010, 02:54 PM   #25
rg3
Member
 
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 509

Rep: Reputation: Disabled
I almost never boot. I suspend to RAM whenever I leave the computer for more than 3 minutes, and the wake-up time is about 5 seconds. For me, there's no need to change the init sequence when there are other more useful facilities in modern computers.
 
Old 12-12-2010, 12:14 AM   #26
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 479

Rep: Reputation: Disabled
I've done a couple of those modifications to shorten boot time but decided it's just not worth it. It is usually an after the fact issue that I remember I have to manually update things that should have been accomplish at boot time.

Besides I like watching the boot messages as they go by.
 
Old 12-12-2010, 08:20 AM   #27
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,030
Blog Entries: 52

Rep: Reputation: Disabled
I haven't timed my boot-up, but it's fast enough for me. I'm not working against the clock, I had enough of that crap when I was working in machine shops on piece-work.
 
Old 12-12-2010, 11:51 AM   #28
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,755

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
Why brianL, nice to hear you were a machinist -as I once was myself.
 
Old 12-13-2010, 03:40 AM   #29
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,030
Blog Entries: 52

Rep: Reputation: Disabled
Quote:
Originally Posted by gnashley View Post
Why brianL, nice to hear you were a machinist -as I once was myself.
Yeah, mostly on milling machines.
 
Old 12-13-2010, 08:50 AM   #30
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
The TuxOnIce kernel patch has sped up hibernate quite a bit for me.
http://tuxonice.net/

It only takes about 10 seconds to resume on my netbook with 1 GB ram (it takes about 30 seconds when using the default 'swsusp')

Last edited by piratesmack; 12-13-2010 at 08:55 AM.
 
  


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
Speeding up LiveDVD boot, is it possible to get a list of files access on boot? MikeyCarter Linux - Software 1 11-17-2009 02:38 AM
Speeding up boot time with Ubuntu Netbook Remix callumacrae Linux - Laptop and Netbook 2 11-02-2009 10:59 AM
Speeding up compile time? Method9455 Linux - Kernel 1 07-01-2007 07:59 PM
Need help speeding up my boot NonSumPisces Linux - General 2 09-05-2004 04:42 PM
Speeding up Linux (Slack) boot pandasuit Slackware 19 08-28-2004 12:46 AM


All times are GMT -5. The time now is 01:10 AM.

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