Results 1 to 4 of 4

Thread: How to check for systems shutdown/startup in 12.10?

  1. #1
    Join Date
    Jan 2013
    Beans
    30

    How to check for systems shutdown/startup in 12.10?

    Hello guys,

    I am running the following commands every evening, using crontab

    30 23 * * * root rtcwake -m mem -s 23000
    15 6 * * * root reboot

    I can see from /var/log/auth.log, that something has happened at those times (session closed/session opened), but I can also see the same type of messages at other times, when I know I haven't restarted the computer.

    Is there any way I can check just the shutdowns and startups of the computer?
    If I check in /var/log/boot.log, I can see some things being started and stopped, but there are no dates and times for when this is occuring.
    Last edited by Balthier1979; February 13th, 2013 at 10:43 AM.

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: How to check for systems shutdown/startup in 12.10?

    This will show all reboots since /var/log/wtmp was created
    Code:
    last reboot

  3. #3
    Join Date
    May 2010
    Location
    uk
    Beans
    9,360
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How to check for systems shutdown/startup in 12.10?

    Hi

    Use the command.

    Code:
     
    last
    That will show when users logged in and the machine was rebooted.

    You can also check /var/log/syslog.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  4. #4
    Join Date
    Jan 2013
    Beans
    30

    Re: How to check for systems shutdown/startup in 12.10?

    Thanks guys.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •