27.10.2012, 22:00, "Rares Aioanei" <[email protected]>:
> On Sat, Oct 27, 2012 at 09:30:50PM +0400, Mike Korbakov wrote:
>
>>  Hi, misc !
>>
>>  I've changed /etc/rc.conf to run portmap at startup:
>>  portmap_flags=""        # for normal use: ""
>>
>>  But it not running after boot, see below:
>>
>>  # uname -a
>>  OpenBSD obsd52.vm.serv2.kmv 5.2 GENERIC.MP#19 i386
>>  # rpcinfo -p 127.0.0.1
>>  rpcinfo: can't contact portmapper: RPC: Remote system error - Connection 
>> refused
>>  # cat /etc/rc.conf
>
> [snip]
>
>>  # grep -rn portmap /var/log/
>>  #
>
> What does ps aux have to say? After altering /etc/rc.conf, did you reboot? 
> Anything significant in the logs?
>
> --
> --
>
> Rares Aioanei

It says nothing good, but daemon can run from commandline and don't crash:

bash-4.2# rpcinfo -p 127.0.0.1
rpcinfo: can't contact portmapper: RPC: Remote system error - Connection refused
bash-4.2# ps aux
USER       PID %CPU %MEM   VSZ   RSS TT  STAT  STARTED       TIME COMMAND
root      3983  3.1  0.2  1116  1788 p0  S     10:05PM    0:00.21 bash
_pflogd   3081  1.0  0.0   660   332 ??  S     10:05PM    0:03.33 pflogd: 
[running] -s 160 -i pflog0 -f /var/log/pflog (pflogd)
root     31256  2.0  0.0   564   212 p0  R+/0  10:05PM    0:00.03 ps -aux
root         1  0.0  0.0   564   356 ??  Is    10:04PM    0:01.10 /sbin/init
root     10047  0.0  0.1   468   756 ??  Is    10:04PM    0:00.06 syslogd: 
[priv] (syslogd)
_syslogd 26391  0.0  0.1   476   728 ??  S     10:04PM    0:00.41 
/usr/sbin/syslogd -a /var/www/dev/log -a /var/empty/dev/log
root      5749  0.0  0.0   596   468 ??  Is    10:05PM    0:00.06 pflogd: 
[priv] (pflogd)
root     20486  0.0  0.1   764  1196 ??  Ss    10:05PM    0:00.12 /usr/sbin/sshd
root     26617  0.0  0.1   544   776 ??  Is    10:05PM    0:00.21 
/usr/sbin/inetd
_sndio   31558  0.0  0.0   464   424 ??  I<s   10:05PM    0:00.03 
/usr/bin/sndiod
root     21170  0.0  0.1   292   636 ??  Is    10:05PM    0:00.13 
/usr/sbin/hotplugd
root     15761  0.0  0.1   524   872 ??  Is    10:05PM    0:00.16 /usr/sbin/cron
root     29374  0.3  0.2  3368  2608 ??  Ss    10:05PM    0:00.35 sshd: 
root@ttyp0 (sshd)
root     28572  0.0  0.2  1408  1644 ??  Ss    10:05PM    0:00.10 sendmail: 
accepting connections (sendmail)
root     19322  0.0  0.0   560   512 p0  Ss    10:05PM    0:00.10 -ksh (ksh)
root     15814  0.0  0.1   516   808 C0  Is+   10:05PM    0:00.07 
/usr/libexec/getty std.9600 ttyC0
root     13865  0.0  0.1   364   804 C1  Is+   10:05PM    0:00.07 
/usr/libexec/getty std.9600 ttyC1
root     21640  0.0  0.1   356   824 C2  Is+   10:05PM    0:00.09 
/usr/libexec/getty std.9600 ttyC2
root     27616  0.0  0.1   288   808 C3  Is+   10:05PM    0:00.07 
/usr/libexec/getty std.9600 ttyC3
root     28591  0.0  0.1   472   812 C5  Is+   10:05PM    0:00.05 
/usr/libexec/getty std.9600 ttyC5
bash-4.2# portmap
bash-4.2# ps aux
USER       PID %CPU %MEM   VSZ   RSS TT  STAT  STARTED       TIME COMMAND
root         1  0.0  0.0   564   356 ??  Ss    10:04PM    0:01.10 /sbin/init
root     10047  0.0  0.1   468   756 ??  Is    10:04PM    0:00.06 syslogd: 
[priv] (syslogd)
_syslogd 26391  0.0  0.1   476   728 ??  S     10:04PM    0:00.41 
/usr/sbin/syslogd -a /var/www/dev/log -a /var/empty/dev/log
root      5749  0.0  0.0   596   468 ??  Is    10:05PM    0:00.06 pflogd: 
[priv] (pflogd)
_pflogd   3081  0.2  0.0   660   340 ??  S     10:05PM    0:03.34 pflogd: 
[running] -s 160 -i pflog0 -f /var/log/pflog (pflogd)
root     20486  0.0  0.1   764  1196 ??  Is    10:05PM    0:00.12 /usr/sbin/sshd
root     26617  0.0  0.1   544   776 ??  Is    10:05PM    0:00.21 
/usr/sbin/inetd
_sndio   31558  0.0  0.0   464   424 ??  I<s   10:05PM    0:00.03 
/usr/bin/sndiod
root     21170  0.0  0.1   292   636 ??  Is    10:05PM    0:00.13 
/usr/sbin/hotplugd
root     15761  0.0  0.1   556   896 ??  Ss    10:05PM    0:00.16 /usr/sbin/cron
root     29374  0.1  0.2  3368  2608 ??  Ss    10:05PM    0:00.39 sshd: 
root@ttyp0 (sshd)
root     28572  0.0  0.2  1408  1644 ??  Ss    10:05PM    0:00.10 sendmail: 
accepting connections (sendmail)
_portmap 14865  0.5  0.1   364   760 ??  Ss    10:06PM    0:00.07 portmap
root     19322  0.0  0.0   560   512 p0  Is    10:05PM    0:00.10 -ksh (ksh)
root      3983  0.1  0.2  1116  1792 p0  S     10:05PM    0:00.24 bash
root     11506  0.0  0.0   388   292 p0  R+/1  10:06PM    0:00.00 ps -aux
root     15814  0.0  0.1   516   808 C0  Is+   10:05PM    0:00.07 
/usr/libexec/getty std.9600 ttyC0
root     13865  0.0  0.1   364   804 C1  Is+   10:05PM    0:00.07 
/usr/libexec/getty std.9600 ttyC1
root     21640  0.0  0.1   356   824 C2  Is+   10:05PM    0:00.09 
/usr/libexec/getty std.9600 ttyC2
root     27616  0.0  0.1   288   808 C3  Is+   10:05PM    0:00.07 
/usr/libexec/getty std.9600 ttyC3
root     28591  0.0  0.1   472   812 C5  Is+   10:05PM    0:00.05 
/usr/libexec/getty std.9600 ttyC5
bash-4.2# rpcinfo -p 127.0.0.1
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
bash-4.2#

Reply via email to