Skip to content

Commit 1719268

Browse files
N-R-Knavi-desu
authored andcommitted
supervise-daemon: remove undocumented and unused -H option
this was added as a part of c1e5825, presumably as a convenient way to specify a minutes timer. but it was never documented, there's no init.d script variable for this and finally, the number was never multiplied by 60, so it was incorrect anyways. given all that, just remove it. should be safe to do so. if there's any actual demand for such convenience option, we can change --healthcheck-timer to accept a duration similar to --respawn-delay.
1 parent a93b0d8 commit 1719268

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/supervise-daemon/supervise-daemon.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ enum {
8989

9090
const char *applet = NULL;
9191
const char *extraopts = NULL;
92-
const char getoptstring[] = "A:a:D:d:e:g:H:I:Kk:m:N:p:R:r:s:Su:0:1:2:3" \
92+
const char getoptstring[] = "A:a:D:d:e:g:I:Kk:m:N:p:R:r:s:Su:0:1:2:3" \
9393
getoptstring_COMMON;
9494
const struct option longopts[] = {
9595
{ "healthcheck-timer", 1, NULL, 'a'},
@@ -986,11 +986,6 @@ int main(int argc, char **argv)
986986
gid = gr->gr_gid;
987987
break;
988988

989-
case 'H': /* --healthcheck-timer <minutes> */
990-
if (sscanf(optarg, "%d", &healthchecktimer) != 1 || healthchecktimer < 1)
991-
eerrorx("%s: invalid health check timer %s", applet, optarg);
992-
break;
993-
994989
case 'k':
995990
if (parse_mode(&numask, optarg))
996991
eerrorx("%s: invalid mode `%s'",

0 commit comments

Comments
 (0)