mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04: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
4 changed files with 54 additions and 0 deletions
|
@ -23,5 +23,9 @@ post-extract:
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
strip ${PREFIX}/libexec/idled
|
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>
|
.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:
|
post-install:
|
||||||
strip ${PREFIX}/libexec/idled
|
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>
|
.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…
Add table
Reference in a new issue