LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-02-2016, 10:29 AM   #1
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Rep: Reputation: 131Reputation: 131
How to find reboot history from over a year ago?


So a week ago I rebooted one of my servers, running Slackware 14.1 64 bit. We use it for a fax server. It's an old Dell box sitting in a corner of the server room. Today I realized that the hylafax daemon hfaxd was not running (and it took people a week to realize their faxes weren't going out, go figure). After a bit of poking around I realized that 1) rc.hylafax was not chmod 755 and 2) there was no entry in rc.M anyhow. I fixed those, rebooted to make sure it was right, and now hfaxd starts up and faxing works and everyone is happy.

What bugged me was that this box has not been touched for over a year. Come to find out that when I set it a year or so ago, I manually started the hylafax daemon and never noticed that it wasn't set to autostart. As near as I can tell, the box has not been rebooted since. It sat in the corner of the server room for over a year happily chugging along, processing faxes, and just doing its job (I wish our Windows servers could do that!!).

So anyhow my question is this: is there any kind of reboot log that would show reboots from that long ago? I poked through /var/log and did not find anything helpful that went back that far. I'd like to find out for sure if it really has been that long since it was last rebooted.
 
Old 03-02-2016, 10:52 AM   #2
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Try /usr/bin/last.

EDIT: last -x shows just the shutdown/reboot events. (Well, perhaps not).

Last edited by TracyTiger; 03-02-2016 at 10:58 AM.
 
2 members found this post helpful.
Old 03-02-2016, 11:02 AM   #3
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Try

Code:
/usr/bin/last | grep reboot
 
Old 03-02-2016, 11:03 AM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Try

Code:
/usr/bin/last | grep reboot
 
Old 03-02-2016, 11:12 AM   #5
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
last reboot

That was what I was looking for, tyvm!!!

And yeah, this box really has been running for about a year, untouched, ignored. What is weird that according to the bash history, I actually did a chmod 755 rc.hylafax when I was setting it up, but today I found the file to be chmod 644. <shrug> probably never figure that one out, I just don't remember what I did a year ago...
 
Old 03-02-2016, 12:35 PM   #6
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
You could run "ls -lc rc.hylafax" to see when the last change occurred. Might be a clue there.
 
Old 03-02-2016, 12:40 PM   #7
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
It was changed January of 2015 when I set it up. That is what bugs me. I see chmod 755 rc.hylafax in the history file, I see a file change date of 1/2015, but it was definitely chmod at 644 today.

But I had a lot of trouble getting it going when I initially set it up. I'm actually using Hylafax+ because we could never get Hylafax itself to work. So I switched to Hylafax+, and I've since done several Hylafax+ installs, and they are fast and smooth and relatively easy to get working now that I know what I'm doing. But Hylafax itself? Never worked. So it's very possible that the file I chmod'd was later deleted and replaced with the Hylafax+ file and that never got chmod'd to 755. Just guessing. That was over a year ago and I've done so much since then and honestly, I'm not as young as I used to be and my memory isn't as sharp as it used to be...
 
  


Reply



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
It Was One Year Ago... cwizardone Slackware 12 11-11-2014 05:21 AM
LXer: A Year Ago Today Valve Released Steam For Linux LXer Syndicated Linux News 0 02-14-2014 12:31 PM
How to print out "n" days ago's year, month and day? ArthurHuang Programming 3 02-10-2011 08:33 PM
LXer: 1 Year Ago: Amarok 1.4.10 Review [Oldies but Goldies] LXer Syndicated Linux News 0 08-11-2009 11:51 PM
I Should Have Done This A Year Ago masonm General 7 03-06-2007 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration