ports/net/quoted/files/patch-quoted.sh.rc.freebsd
Simon Barner 73b0a29142 Add quoted 1.0,
easily configured QOTD daemon with over 130 good
quality quotes.

PR:		74615
Submitted by:	Bob Frazier
2005-06-05 21:56:53 +00:00

20 lines
724 B
Text

--- quoted.sh.rc.freebsd.orig Thu Dec 2 02:20:30 2004
+++ quoted.sh.rc.freebsd Wed Jun 1 14:34:54 2005
@@ -16,7 +16,7 @@
name="quoted"
rcvar=`set_rcvar`
command="${dir}/${name}"
-command_args="-d"
+command_args="-d -p:17"
command_plus_args="${command} ${command_args}"
pidfile="/var/run/${name}.pid"
required_files="${etc}/quotes"
@@ -31,7 +31,7 @@
if [ -e ${required_files} ] ; then
${command_plus_args}
sleep 1
- pid=`ps -aewx -o "pid,command" | grep -- "${command_plus_args}" | grep -v "grep" | awk '{ print \$1; }'`
+ pid=`ps ax | awk '{if (match($5, ".*/quoted$") || $5 == "quoted") print $1}`
if [ -z ${pid} ]; then
echo "${name} failed to start"
return 1