astro/setiathome port setiathome.sh patches
Jonathan Chen
jonc at mobiledatanow.com
Mon Jun 2 21:53:23 PDT 2003
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 at 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
More information about the freebsd-ports
mailing list