Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2003 10:53:26 +1200
From:      Jonathan Chen <jonc@mobiledatanow.com>
To:        cyrille.lefevre@laposte.net
Cc:        freebsd-ports@freebsd.org
Subject:   astro/setiathome port setiathome.sh patches
Message-ID:  <20030602225325.GA80445@wapsolutions.co.nz>

next in thread | raw e-mail | index | archive | help
Hi,

I recently upgraded my astro/setiathome on my 4-STABLE machine and had
some problems getting to run on startup. I had to add the following
fix (patch attached) to get it working correctly.

"ps axo comm" gives the following error on -STABLE:
	ps: comm: keyword not found
	ps: no valid keywords; valid keywords:
	%cpu %mem acflag acflg blocked caught command cpu cputime f flags ignored
	inblk inblock jobc ktrace ktracep lim login logname lstart majflt minflt msgrcv
	msgsnd ni nice nivcsw nsignals nsigs nswap nvcsw nwchan oublk oublock p_ru
	paddr pagein pcpu pending pgid pid pmem ppid pri re rgid rlink rss rssize rsz
	rtprio ruid ruser sess sig sigcatch sigignore sigmask sl start stat state svgid
	svuid tdev time tpgid tsess tsiz tt tty ucomm uid upr user usrpri vsize vsz
	wchan xstat

The egrep expression had to be changed from ${program_file} to
${wrapper_path} as the "ps axo command" kept on picking up the
setiathome.sh startup script.

Cheers.
-- 
Jonathan Chen <jonc@mobiledatanow.com>
Mobile Data Now                     Tel: +64-9-636-8014
35K Maurice Rd                      Fax: +64-9-636-8534
Penrose, Auckland
New Zealand

--- setiathome.sh	Tue Jun  3 09:08:59 2003
+++ /tmp/setiathome.sh	Tue Jun  3 10:46:05 2003
@@ -97,7 +97,7 @@
 			exit 72
 		fi
 	done
-	if ps axo comm | egrep ${program_file}; then
+	if ps axo command | egrep ${wrapper_path}; then
 		logger -sp ${syslog_facility} -t ${program_file} \
 		"unable to start: ${program_file} is already running."
 		exit 72



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030602225325.GA80445>