summaryrefslogtreecommitdiffstats
path: root/urunlevel/runlevel/boot_named.c
diff options
context:
space:
mode:
Diffstat (limited to 'urunlevel/runlevel/boot_named.c')
-rw-r--r--urunlevel/runlevel/boot_named.c57
1 files changed, 57 insertions, 0 deletions
diff --git a/urunlevel/runlevel/boot_named.c b/urunlevel/runlevel/boot_named.c
new file mode 100644
index 0000000..fba83c7
--- /dev/null
+++ b/urunlevel/runlevel/boot_named.c
@@ -0,0 +1,57 @@
1/*
2 * Mini named boot implementation for busybox.
3 *
4 * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au
5 *
6 * 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
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 * 02111-1307 USA
20 *
21 */
22
23#include <unistd.h>
24
25#include "busybox.h"
26#include "lib_init_d.h"
27
28
29static init_d_handle_t my_commands =
30{
31 NULL,
32 NULL,
33 NULL,
34 NULL,
35 &sighup_reload,
36 NULL,
37 NULL,
38 NULL,
39 "boot_named",
40 "named",
41 NULL,
42 NULL,
43 INIT_D_BEGIN \
44 INIT_D_PROV "$named" \
45 INIT_D_RSTART "$network $syslog" \
46 INIT_D_DSTART "3 4 5" \
47 INIT_D_DSTOP "0 1 2 6" \
48 INIT_D_SDESC "Hostname resolution service." \
49 INIT_D_DESC "Hostname resolution service." \
50 INIT_D_END
51};
52
53
54int boot_named_main(int argc, char **argv)
55{
56 return do_init_from_main(argc, argv, &my_commands);
57}