View | Details | Raw Unified | Return to bug 20458
Collapse All | Expand All

(-)idled/Makefile (+4 lines)
Lines 23-27 Link Here
23
23
24
post-install:
24
post-install:
25
	strip ${PREFIX}/libexec/idled
25
	strip ${PREFIX}/libexec/idled
26
	@if [ ! -f ${PREFIX}/etc/rc.d/idled.sh ]; then \
27
		${ECHO} "Installing ${PREFIX}/etc/rc.d/idled.sh startup file."; \
28
		${INSTALL_SCRIPT} -m 751 ${FILESDIR}/idled.sh ${PREFIX}/etc/rc.d/idled.sh; \
29
	fi
26
30
27
.include <bsd.port.mk>
31
.include <bsd.port.mk>
(-)idled/files/idled.sh (+27 lines)
Line 0 Link Here
1
#!/bin/sh
2
case "$1" in
3
	start)
4
		/usr/local/libexec/idled
5
		echo -n ' idled'
6
		;;
7
	stop)
8
		if [ -f /var/run/sshd.pid ]; then
9
			kill -TERM `cat /var/run/sshd.pid`
10
			rm -f /var/run/sshd.pid
11
			echo -n ' sshd'
12
		fi
13
		;;
14
	restart)
15
		if [ -f /var/run/sshd.pid ]; then
16
			kill -HUP `cat /var/run/sshd.pid`
17
			echo 'sshd restarted'
18
		fi
19
		;;
20
	-h)
21
		echo "Usage: `basename $0` { start | stop | restart }"
22
		;;
23
	*)
24
		/usr/local/libexec/idled
25
		echo -n ' idled'
26
		;;
27
esac

Return to bug 20458