1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

Add startup script.

PR:		20458
Submitted by:	James Howard <howardjp@wam.umd.edu>
This commit is contained in:
Will Andrews 2000-08-11 01:34:09 +00:00
parent d5ed1c173a
commit dcb4cb482a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31500
4 changed files with 54 additions and 0 deletions

View File

@ -23,5 +23,9 @@ post-extract:
post-install:
strip ${PREFIX}/libexec/idled
.if !exists(${PREFIX}/etc/rc.d/idled.sh)
@${ECHO} "Installing ${PREFIX}/etc/rc.d/idled.sh startup script."
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/idled.sh ${PREFIX}/etc/rc.d/idled.sh
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,23 @@
#!/bin/sh
case "$1" in
start)
/usr/local/libexec/idled
echo -n ' idled'
;;
stop)
killall -TERM idled
echo "idled stopped"
;;
restart)
killall -TERM idled
/usr/local/libexec/idled
echo "idled restarted"
;;
-h)
echo "Usage: `basename $0` { start | stop | restart }"
;;
*)
/usr/local/libexec/idled
echo -n ' idled'
;;
esac

View File

@ -23,5 +23,9 @@ post-extract:
post-install:
strip ${PREFIX}/libexec/idled
.if !exists(${PREFIX}/etc/rc.d/idled.sh)
@${ECHO} "Installing ${PREFIX}/etc/rc.d/idled.sh startup script."
${INSTALL_SCRIPT} -m 751 ${FILESDIR}/idled.sh ${PREFIX}/etc/rc.d/idled.sh
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,23 @@
#!/bin/sh
case "$1" in
start)
/usr/local/libexec/idled
echo -n ' idled'
;;
stop)
killall -TERM idled
echo "idled stopped"
;;
restart)
killall -TERM idled
/usr/local/libexec/idled
echo "idled restarted"
;;
-h)
echo "Usage: `basename $0` { start | stop | restart }"
;;
*)
/usr/local/libexec/idled
echo -n ' idled'
;;
esac