diff options
Diffstat (limited to '')
-rw-r--r-- | urunlevel/runlevel/boot_named.c | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/urunlevel/runlevel/boot_named.c b/urunlevel/runlevel/boot_named.c index fba83c7..381896c 100644 --- a/urunlevel/runlevel/boot_named.c +++ b/urunlevel/runlevel/boot_named.c | |||
@@ -3,6 +3,9 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au | 4 | * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au |
5 | * | 5 | * |
6 | * Clean room implementation of LSB init.d specs. | ||
7 | * I didn't steal any of this, honest B-). | ||
8 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by | 10 | * it under the terms of the GNU General Public License as published by |
8 | * the Free Software Foundation; either version 2 of the License, or | 11 | * the Free Software Foundation; either version 2 of the License, or |
@@ -26,32 +29,30 @@ | |||
26 | #include "lib_init_d.h" | 29 | #include "lib_init_d.h" |
27 | 30 | ||
28 | 31 | ||
29 | static init_d_handle_t my_commands = | 32 | static init_d_handle_t my_commands = { |
30 | { | 33 | NULL, |
31 | NULL, | 34 | NULL, |
32 | NULL, | 35 | NULL, |
33 | NULL, | 36 | NULL, |
34 | NULL, | 37 | &sighup_reload, |
35 | &sighup_reload, | 38 | NULL, |
36 | NULL, | 39 | NULL, |
37 | NULL, | 40 | NULL, |
38 | NULL, | 41 | "named", |
39 | "boot_named", | 42 | "named", |
40 | "named", | 43 | NULL, |
41 | NULL, | 44 | NULL, |
42 | NULL, | 45 | INIT_D_BEGIN |
43 | INIT_D_BEGIN \ | 46 | INIT_D_PROV "$named" |
44 | INIT_D_PROV "$named" \ | 47 | INIT_D_RSTART "$network $syslog" |
45 | INIT_D_RSTART "$network $syslog" \ | 48 | INIT_D_DSTART "3 4 5" |
46 | INIT_D_DSTART "3 4 5" \ | 49 | INIT_D_DSTOP "0 1 2 6" |
47 | INIT_D_DSTOP "0 1 2 6" \ | 50 | INIT_D_SDESC "Hostname resolution service." |
48 | INIT_D_SDESC "Hostname resolution service." \ | 51 | INIT_D_DESC "Hostname resolution service." INIT_D_END |
49 | INIT_D_DESC "Hostname resolution service." \ | ||
50 | INIT_D_END | ||
51 | }; | 52 | }; |
52 | 53 | ||
53 | 54 | ||
54 | int boot_named_main(int argc, char **argv) | 55 | int boot_named_main(int argc, char **argv) |
55 | { | 56 | { |
56 | return do_init_from_main(argc, argv, &my_commands); | 57 | return do_init_from_main(argc, argv, &my_commands); |
57 | } | 58 | } |