mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
- Fix bogus kill -SIGUSR1 to -USR1 for reload target
- update Usage.
This commit is contained in:
parent
f82198f281
commit
23214d189f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=89422
2 changed files with 3 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= noattach
|
PORTNAME= noattach
|
||||||
PORTVERSION= 1.1.1
|
PORTVERSION= 1.1.1
|
||||||
|
PORTVREVISION= 1
|
||||||
CATEGORIES= mail
|
CATEGORIES= mail
|
||||||
MASTER_SITES= ftp://ftp.rhnet.is/pub/noattach/
|
MASTER_SITES= ftp://ftp.rhnet.is/pub/noattach/
|
||||||
DISTNAME= ${PORTNAME}-1.1p1
|
DISTNAME= ${PORTNAME}-1.1p1
|
||||||
|
|
|
@ -24,13 +24,13 @@ stop)
|
||||||
reload)
|
reload)
|
||||||
if test -r /var/run/noattach.pid
|
if test -r /var/run/noattach.pid
|
||||||
then
|
then
|
||||||
kill `head -SIGUSR1 /var/run/noattach.pid`
|
kill -USR1 `head -1 /var/run/noattach.pid`
|
||||||
else
|
else
|
||||||
echo " noattach: not running" 2>&1
|
echo " noattach: not running" 2>&1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: ${0##*/}: { start | stop }" 2>&1
|
echo "Usage: ${0##*/}: { start | stop | reload }" 2>&1
|
||||||
exit 65
|
exit 65
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Add table
Reference in a new issue