Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177482250
D21431.1794537347.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D21431.1794537347.diff
View Options
Index: net/htpdate/Makefile
===================================================================
--- net/htpdate/Makefile
+++ net/htpdate/Makefile
@@ -3,6 +3,7 @@
PORTNAME= htpdate
PORTVERSION= 1.2.2
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= http://www.vervest.org/htp/archive/c/ \
http://twekkel.home.xs4all.nl/htp/
Index: net/htpdate/files/htpdate.in
===================================================================
--- net/htpdate/files/htpdate.in
+++ net/htpdate/files/htpdate.in
@@ -16,29 +16,23 @@
load_rc_config htpdate
-htpdate_enable="${htpdate_enable:-"NO"}"
-htpdate_servers="${htpdate_servers:-"www.example.com"}"
-htpdate_flags="${htpdate_flags:-"-l -s -D"}"
+: "${htpdate_enable:="NO"}"
+: "${htpdate_servers:="www.example.com"}"
+: "${htpdate_flags:="-l -s -D"}"
name=htpdate
rcvar=htpdate_enable
-servers=${htpdate_servers}
-pidfile=/var/run/htpdate.pid
-command="/usr/local/bin/htpdate"
-command_args="${htpdate_flags} $servers"
-stop_cmd=htpdate_stop
+start_precmd="htpdate_prestart"
+command="%%PREFIX%%/bin/htpdate"
+command_args="${htpdate_servers}"
-htpdate_stop ()
-{
- if [ -f ${pidfile} ]; then
- echo "Stopping htpdate."
- kill `cat ${pidfile}`
- else
- echo "htpdate is not running."
- fi
+htpdate_prestart() {
+ local _pidfile="/var/run/htpdate.pid"
- rm -f ${pidfile}
+ if [ -z "$(check_process "${procname}")" ]; then
+ rm -f -- "${_pidfile}"
+ fi
}
run_rc_command "$1"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 13, 2:35 AM (11 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41688336
Default Alt Text
D21431.1794537347.diff (1 KB)
Attached To
Mode
D21431: net/htpdate: Fix the service script
Attached
Detach File
Event Timeline