|
|
085af2 |
diff --git a/docs/needs-restarting.1 b/docs/needs-restarting.1
|
|
|
085af2 |
index 7910e25..0e7a591 100644
|
|
|
085af2 |
--- a/docs/needs-restarting.1
|
|
|
085af2 |
+++ b/docs/needs-restarting.1
|
|
|
085af2 |
@@ -15,7 +15,7 @@ Display a help message, and then quit.
|
|
|
085af2 |
.IP "\fB\-u, \-\-useronly\fP"
|
|
|
085af2 |
Show processes for my userid only.
|
|
|
085af2 |
.IP "\fB\-r, \-\-reboothint\fP"
|
|
|
085af2 |
-Only report whether a full reboot is required (returns 1) or not (returns 0).
|
|
|
085af2 |
+Only report whether a full reboot is required (exit code 1) or not (exit code 0).
|
|
|
085af2 |
.IP "\fB\-s, \-\-services\fP"
|
|
|
085af2 |
List the affected systemd services only.
|
|
|
085af2 |
|
|
|
085af2 |
diff --git a/needs-restarting.py b/needs-restarting.py
|
|
|
085af2 |
index c2d5ad9..eaafd9d 100755
|
|
|
085af2 |
--- a/needs-restarting.py
|
|
|
085af2 |
+++ b/needs-restarting.py
|
|
|
085af2 |
@@ -63,8 +63,8 @@ def parseargs(args):
|
|
|
085af2 |
parser.add_option("-u", "--useronly", default=False, action="store_true",
|
|
|
085af2 |
help='show processes for my userid only')
|
|
|
085af2 |
parser.add_option("-r", "--reboothint", default=False, action="store_true",
|
|
|
085af2 |
- help=('only report whether a full reboot is required (returns 1) or not '
|
|
|
085af2 |
- '(returns 0)'))
|
|
|
085af2 |
+ help=('only report whether a full reboot is required (exit code 1) or '
|
|
|
085af2 |
+ 'not (exit code 0)'))
|
|
|
085af2 |
parser.add_option("-s", "--services", default=False, action="store_true",
|
|
|
085af2 |
help='list the affected systemd services only')
|
|
|
085af2 |
|