aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Makefile8
-rw-r--r--src/testd.c9
-rwxr-xr-xsrc/testdinit44
3 files changed, 1 insertions, 60 deletions
diff --git a/src/Makefile b/src/Makefile
index 68833182..09f17771 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,6 +1,6 @@
CFLAGS+=$(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE
-PROGS=usernetctl netreport testd usleep ipcalc \
+PROGS=usernetctl netreport usleep ipcalc \
fstab-decode getkey ppp-watch consoletype genhostid rename_device
PPPWATCH_OBJS=ppp-watch.o shvar.o
CONSOLE_INIT_OBJS=console_init.o shvar.o
@@ -43,12 +43,6 @@ install:
install -m 644 sushell.8 $(ROOT)$(mandir)/man8
ln -s ifup.8 $(ROOT)$(mandir)/man8/ifdown.8
-# this daemon and initscript are useful for testing the up/down/status stuff
-# not installed by default, only comes from sources.
-install-test:
- install -m 755 testd $(ROOT)/usr/sbin/testd
- install -m 755 testdinit $(ROOT)/etc/init.d/testd
-
getkey: getkey.o
$(CC) $(LDFLAGS) -o $@ $< -lpopt
diff --git a/src/testd.c b/src/testd.c
deleted file mode 100644
index b2a5c7e6..00000000
--- a/src/testd.c
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <sys/signal.h>
-#include <unistd.h>
-#include <stdlib.h>
-
-int main() {
- signal(SIGTERM, SIG_IGN);
- while (1) sleep(20);
- exit(0);
-}
diff --git a/src/testdinit b/src/testdinit
deleted file mode 100755
index a6500991..00000000
--- a/src/testdinit
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-#
-# lpd This shell script takes care of starting and stopping
-# lpd (printer daemon).
-#
-
-# Source function library.
-. /etc/init.d/functions
-
-# See how we were called.
-case "$1" in
- start)
- # Start daemons.
- echo -n $"Starting testd: "
- testd &
- echo
- touch /var/lock/subsys/testd
- ;;
- stop)
- # Stop daemons.
- echo -n $"Shutting down testd: "
- killproc testd
- echo
- rm -f /var/lock/subsys/testd
- ;;
- status)
- # Am I alive?
- status testd
- exit $?
- ;;
- restart)
- echo -n $"Shutting down testd: "
- killproc testd
- echo
- echo -n $"Starting testd: "
- testd &
- echo
- ;;
- *)
- echo $"Usage: testd {start|stop|status|restart}"
- exit 1
-esac
-
-exit 0