DOWNTIMED(8)
π DOWNTIMED(8) π
okay bestie, welcome to the System Manager's Manual section 8, and today we're talking about downtimed β the girl who literally never stops watching. she's in the 8 club so you already know she's a system-level queen π
β¨ NAME β¨
downtimed β system downtime monitoring and reporting daemon π°οΈπ
β¨ SYNOPSIS β¨
downtimed [-D] [-d datadir] [-F] [-f timefmt] [-l log] [-p pidfile] [-S]
[-s sleep]
downtimed -v
β¨ DESCRIPTION β¨
so like. the downtimed daemon just vibes in the background, constantly updating a time stamp file on the disk. that's her whole job. lowkey iconic of her tbh.
and then β if the daemon gets killed with a signal associated with a normal system shutdown procedure, she records the shutdown time on the disk. like she's taking notes for you. π
when the daemon gets restarted during the next boot process, she reports how long the system was down and whether it was properly shut down or crashed (π messy). the downtime report gets output to the system log or to a specified log file. and also a record is appended to the downtime database. she keeps receipts, fr fr.
β¨ OPTIONS β¨
-Dβ Do not create nor update the downtime database. no database for you, she's just not feeling it today π-ddatadir β The directory where the time stamp files as well as the downtime database are located. The default directory is determined at compile time.-Fβ Do not calldaemon(3)tofork(2)to background. Useful with modern system service managers such assystemd(8),launchd(8)and others. basically: let the service manager handle the forking, bestie, you don't need to do it yourself β¨-ftimefmt β Specify the time and date format to use when reporting usingstrftime(3)syntax. The default is"%F %T".-llog β Logging destination. If the argument contains a slash (/) it is interpreted to be a path name to a log file, which will be created if it does not exist already. Otherwise it is interpreted as a syslog facility name. The default logging destination is"daemon"which means that the messages are written to syslog with the daemon facility code.-ppidfile β The location of the file which keeps track of the process ID of the running daemon process. The system default location is determined at compile time. May be disabled by specifying"none".-Sβ Normallyfsync(2)is performed after each update of the time stamp. This option disables thefsync(2). It reduces the load on the disk system but makes the downtime measurement less reliable. β οΈ trade-offs, bestie, they're real.-ssleep β Defines how long to sleep between each update of the on-disk time stamp file. More frequent updates result in more accurate downtime reporting in the case of a system crash. Less frequent updates decrease the amount of disk writes performed. The default is to sleep 15 seconds between each update. If you are using a flash memory based SSD or other disk which has limited amount of write cycles per block, it might be a good idea to set the sleep time to a higher value to prolong the lifetime of the storage device. π«Ά protect your SSD, she's been through enough-vβ Display the program version number, copyright message and the default settings.
β¨ SIGNALS β¨
SIGHUPβ Close and re-open the output log. Use in case you want to rotate the log file. πSIGTERMandSIGINTβ Terminate gracefully. These signals signify that a graceful system shutdown is in process.
β¨ EXIT STATUS β¨
The daemon exits 0 on success, and >0 if an error occurs.
β¨ SEE ALSO β¨
downtimes(1), syslog.conf(5), https://dist.epipe.com/downtimed/
β¨ BUGS β¨
- The reporting accuracy in case of a system crash depends on how often the time stamp is updated.
- Finding out the system startup time is very operating system specific. If the program does not have specific code to support your operating system, it assumes that the system started when the daemon started. π
- Reporting is inaccurate if the system clock changes during system downtime or startup process. Daylight saving time changes have no effect as all calculations are done using UTC. (UTC stays unbothered. UTC doesn't do drama. π§)
β¨ COPYRIGHT β¨
Copyright Β© 2009-2016 Janne Snabb. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
and that's the whole page bestie!! version 1.0, dated 2016-05-24 β a classic, an icon, a legend, no notes π β¨ go forth and monitor your downtime, she's rooting for you π«Άπ
π¦ where this page comes from
- debian bookworm: downtimed 1.0-3 Β· BSD-2-Clause
- debian trixie: downtimed 1.0-4 Β· BSD-2-Clause
- ubuntu jammy: downtimed 1.0-2 Β· BSD-2-Clause
- ubuntu noble: downtimed 1.0-3 Β· BSD-2-Clause
- ubuntu questing: downtimed 1.0-4
- ubuntu resolute: downtimed 1.0-4build1 Β· BSD-2-Clause
- ubuntu stonking: downtimed 1.0-4build1 Β· BSD-2-Clause
- Copyright (c) 2009-2016 Janne Snabb. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms