Skip to content

Commit

Permalink
Merge pull request #2 from dtan4/prepare-v0.1.0
Browse files Browse the repository at this point in the history
Prepare v0.1.0
  • Loading branch information
dtan4 authored Feb 3, 2017
2 parents e5165e8 + 461233c commit c006cb8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# [v0.1.0](https://github.com/dtan4/systemd-timers/releases/tag/v0.1.0) (2017-02-03)

Initial release.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,31 @@
[![Build Status](https://travis-ci.org/dtan4/systemd-timers.svg?branch=master)](https://travis-ci.org/dtan4/systemd-timers)

Better `systemctl list-timers`

![example](_images/example.png)

## VS. `systemctl list-timers`

systemd has `systemctl list-timers` command to list installed systemd timers.

```bash
core@ip-10-1-2-255 ~ $ sudo systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
Fri 2017-02-03 13:54:00 JST 12s left Fri 2017-02-03 13:53:02 JST 44s ago failed.timer failed.service
Fri 2017-02-03 19:03:00 JST 5h 9min left Fri 2017-02-03 05:03:18 JST 8h ago docker-cleanup.timer docker-cleanup.service
Fri 2017-02-03 21:51:07 JST 7h left Thu 2017-02-02 21:51:07 JST 16h ago systemd-tmpfiles-clean.timer systemd-tmpfiles-clean.service
```

We cannot check task execution result (whether last execution succeeded or failed) at this view.
We have to do `systemctl status <unit>` for each task.
It's so bothersome (at least for me).

This `systemd-timers` show task execution result at once. They are colorized; success is green, failed is red.

```bash
core@ip-10-1-2-255 ~ $ systemd-timers
UNIT LAST RESULT EXECUTION TIME NEXT SCHEDULE
update-valec 2017-02-03 03:00:17 +0900 JST (15 hours ago) success 7 seconds 2017-02-04 03:00:00 +0900 JST *-*-* 03:00:00
backup-prod 2017-02-03 06:10:17 +0900 JST (12 hours ago) failed Less than a second 2017-02-04 06:10:00 +0900 JST *-*-* 06:10:00
backup-stag 2017-02-03 06:05:08 +0900 JST (12 hours ago) failed Less than a second 2017-02-04 06:05:00 +0900 JST *-*-* 06:05:00
```
Binary file added _images/example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c006cb8

Please sign in to comment.