diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:38:32 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:50:20 +0100 |
commit | e2e6f6fe07049f33cb6348780fa975162752e421 (patch) | |
tree | b1813295411235d1297a0ed642b1346b24fdfb12 /meta/recipes-core/busybox/files/inetd | |
download | poky-e2e6f6fe07049f33cb6348780fa975162752e421.tar.gz |
initial commit of Enea Linux 3.1
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'meta/recipes-core/busybox/files/inetd')
-rw-r--r-- | meta/recipes-core/busybox/files/inetd | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/files/inetd b/meta/recipes-core/busybox/files/inetd new file mode 100644 index 0000000000..cf50bcd546 --- /dev/null +++ b/meta/recipes-core/busybox/files/inetd | |||
@@ -0,0 +1,33 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # start/stop inetd super server. | ||
4 | |||
5 | if ! [ -x /usr/sbin/inetd ]; then | ||
6 | exit 0 | ||
7 | fi | ||
8 | |||
9 | case "$1" in | ||
10 | start) | ||
11 | echo -n "Starting internet superserver:" | ||
12 | echo -n " inetd" ; start-stop-daemon -S -x /usr/sbin/inetd > /dev/null | ||
13 | echo "." | ||
14 | ;; | ||
15 | stop) | ||
16 | echo -n "Stopping internet superserver:" | ||
17 | echo -n " inetd" ; start-stop-daemon -K -x /usr/sbin/inetd > /dev/null | ||
18 | echo "." | ||
19 | ;; | ||
20 | restart) | ||
21 | echo -n "Restarting internet superserver:" | ||
22 | echo -n " inetd " | ||
23 | killall -HUP inetd | ||
24 | echo "." | ||
25 | ;; | ||
26 | *) | ||
27 | echo "Usage: /etc/init.d/inetd {start|stop|restart}" | ||
28 | exit 1 | ||
29 | ;; | ||
30 | esac | ||
31 | |||
32 | exit 0 | ||
33 | |||