aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2012-08-06 15:19:38 -0400
committerBill Nottingham <notting@redhat.com>2012-08-06 15:19:38 -0400
commit23bfcbd74b4a02d302927961dc183066937e17e4 (patch)
tree8cfad1ecc3c90ba1f817c92f37ba632b1aec6a46
parent031a9ddaf6e25fb92959d5c1d7198a69c6ea6fbd (diff)
downloadinitscripts-23bfcbd74b4a02d302927961dc183066937e17e4.tar
initscripts-23bfcbd74b4a02d302927961dc183066937e17e4.tar.gz
initscripts-23bfcbd74b4a02d302927961dc183066937e17e4.tar.bz2
initscripts-23bfcbd74b4a02d302927961dc183066937e17e4.tar.xz
initscripts-23bfcbd74b4a02d302927961dc183066937e17e4.zip
Drop testd test sysv script.
-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