diff options
author | Gerrit Pape <pape@smarden.org> | 2009-10-11 19:55:52 +0000 |
---|---|---|
committer | Gerrit Pape <pape@smarden.org> | 2014-08-01 06:57:26 +0000 |
commit | 5e1bdbe972b5cfb3b22bbf83a0142affa199a99b (patch) | |
tree | b99c1d2fa73a67ed7fc0504f42eed300219180b0 /src | |
parent | 945f6cececd9b4f3dcd35bd28b468f19596939b9 (diff) | |
download | runit-5e1bdbe972b5cfb3b22bbf83a0142affa199a99b.tar.gz runit-5e1bdbe972b5cfb3b22bbf83a0142affa199a99b.tar.xz runit-5e1bdbe972b5cfb3b22bbf83a0142affa199a99b.zip |
* sv.c: support optional LSB init script actions reload and
try-restart. http://bugs.debian.org/545227
Diffstat (limited to 'src')
-rw-r--r-- | src/sv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sv.c b/src/sv.c index 06b2e41..7d3ba19 100644 --- a/src/sv.c +++ b/src/sv.c @@ -305,9 +305,11 @@ int main(int argc, char **argv) { acts ="d"; kll =1; cbk =✓ break; case 'T': acts ="tc"; kll =1; cbk =✓ break; + case 't': + if (!str_diff(action, "try-restart")) { acts ="tc"; cbk =✓ break; } case 'c': if (!str_diff(action, "check")) { act =0; acts ="C"; cbk =✓ break; } - case 'u': case 'd': case 'o': case 't': case 'p': case 'h': + case 'u': case 'd': case 'o': case 'p': case 'h': case 'a': case 'i': case 'k': case 'q': case '1': case '2': action[1] =0; acts =action; break; case 's': @@ -318,6 +320,7 @@ int main(int argc, char **argv) { act =&status; cbk =0; break; case 'r': if (!str_diff(action, "restart")) { acts ="tcu"; cbk =✓ break; } + if (!str_diff(action, "reload")) { acts ="h"; cbk =✓ break; } usage(); case 'f': if (!str_diff(action, "force-reload")) |