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:
parent
d5ed1c173a
commit
dcb4cb482a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31500
@ -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>
|
||||
|
23
sysutils/doinkd/files/idled.sh
Normal file
23
sysutils/doinkd/files/idled.sh
Normal 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
|
@ -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>
|
||||
|
23
sysutils/idled/files/idled.sh
Normal file
23
sysutils/idled/files/idled.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user