socklog process names have missing character

Casey Allen Shobe <[email protected]> Wed, 23 Feb 2011 03:21:09 -0500
Newsgroups gmane.comp.misc.pape.general
Message-ID <[email protected]>
--20cf3054a6bb7a09d3049ceec786
Content-Type: text/plain; charset=UTF-8

On OpenBSD 4.8 using the socklog 2.1.0 package from ports (and runit 1.7.2),
it appears that the first letter of any argument following socklog is
dropped from the process name upon startup of the daemon.  In place of
'socklog unix' I see 'socklog nix', and in place of 'socklog ucspi', I see
'socklog cspi'.  While this doesn't affect functionality, it is annoying and
probably easy to fix...

# ps aux | grep socklog
root      4049  0.0  0.3   352   636 ??  Is     9:07PM    0:00.01 runsv
socklog-unix
root      3362  0.0  0.3   188   636 ??  Is     9:32PM    0:00.01 runsv
socklog-klog
root      5798  0.0  0.2   376   504 ??  I      9:32PM    0:00.01 socklog
cspi
_syslogd    90  0.0  0.2   288   572 ??  I      9:44PM    0:00.01 socklog
nix /dev/log

# for i in /service/socklog*/run; do echo "* $i:"; cat $i; echo; done
* /service/socklog-klog/run:
#!/bin/sh
exec </dev/klog
exec 2>&1
exec socklog ucspi

* /service/socklog-unix/run:
#!/bin/sh
exec 2>&1
exec chpst -U_syslogd socklog unix /dev/log

Cheers,
-- 
Casey Allen Shobe
[email protected]

--20cf3054a6bb7a09d3049ceec786
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On OpenBSD 4.8 using the socklog 2.1.0 package from ports (and runit 1.7.2)=
, it appears that the first letter of any argument following socklog is dro=
pped from the process name upon startup of the daemon.=C2=A0 In place of &#=
39;socklog unix&#39; I see &#39;socklog nix&#39;, and in place of &#39;sock=
log ucspi&#39;, I see &#39;socklog cspi&#39;.=C2=A0 While this doesn&#39;t =
affect functionality, it is annoying and probably easy to fix...<br>
<br># ps aux | grep socklog<br>root=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 4049=C2=
=A0 0.0=C2=A0 0.3=C2=A0=C2=A0 352=C2=A0=C2=A0 636 ??=C2=A0 Is=C2=A0=C2=A0=
=C2=A0=C2=A0 9:07PM=C2=A0=C2=A0=C2=A0 0:00.01 runsv socklog-unix<br>root=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 3362=C2=A0 0.0=C2=A0 0.3=C2=A0=C2=A0 188=C2=A0=
=C2=A0 636 ??=C2=A0 Is=C2=A0=C2=A0=C2=A0=C2=A0 9:32PM=C2=A0=C2=A0=C2=A0 0:0=
0.01 runsv socklog-klog<br>root=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 5798=C2=A0 0.=
0=C2=A0 0.2=C2=A0=C2=A0 376=C2=A0=C2=A0 504 ??=C2=A0 I=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 9:32PM=C2=A0=C2=A0=C2=A0 0:00.01 socklog cspi<br>
_syslogd=C2=A0=C2=A0=C2=A0 90=C2=A0 0.0=C2=A0 0.2=C2=A0=C2=A0 288=C2=A0=C2=
=A0 572 ??=C2=A0 I=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 9:44PM=C2=A0=C2=A0=C2=A0 0=
:00.01 socklog nix /dev/log<br><br># for i in /service/socklog*/run; do ech=
o &quot;* $i:&quot;; cat $i; echo; done <br>* /service/socklog-klog/run:<br=
>#!/bin/sh<br>
exec &lt;/dev/klog<br>exec 2&gt;&amp;1<br>exec socklog ucspi<br><br>* /serv=
ice/socklog-unix/run:<br>#!/bin/sh<br>exec 2&gt;&amp;1<br>exec chpst -U_sys=
logd socklog unix /dev/log<br><br clear=3D"all">Cheers,<br>-- <br>Casey All=
en Shobe<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br><br><br><br>

--20cf3054a6bb7a09d3049ceec786--