blob: 662491ea6b37a0d0430d9bc4bb2e6db33f226d7f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- 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
|