From 23bfcbd74b4a02d302927961dc183066937e17e4 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 6 Aug 2012 15:19:38 -0400 Subject: Drop testd test sysv script. --- src/Makefile | 8 +------- src/testd.c | 9 --------- src/testdinit | 44 -------------------------------------------- 3 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 src/testd.c delete mode 100755 src/testdinit (limited to 'src') 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 -#include -#include - -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 -- cgit v1.2.1