Serial console output stalls

2022-04-04 Thread Ivo van der Sangen

Hi,


I am using the vmctl application on a 7.0 stable host with a -current 
guest. The guest was busy building some port. During this build on the 
guest I started another build on the host. I was following the build of 
the guest using vmctl console. After this I noticed a couple of times 
that the console stalls somewhere in the middle of outputting a line and 
that it resumed to show output immediately after I hit a keystroke in 
the console session. This has happened a couple of times now and on 
separate days.



The system I am using is an 8 core i5. I do not know if this is known or 
expected somehow or that there is an issue with this. I hope someone can 
clarify this for me.



Kind regards,


Ivo van der Sangen



Re: How to set up sendmail

2009-10-25 Thread Ivo van der Sangen
On Sat, Oct 24, 2009 at 09:44:07PM -0700, Mark Yieh wrote:
 Hi I'm trying to set up sendmail as my home mail server but it's my  
 first time so I'm not sure what to do.
 I know it's already installed and enabled in base but will only accept  
 requests from local host.
 So I've added this flag in rc.conf.local to enable it it receive  
 external connections:
 
 sendmail_flags=-L sm-mta -bd -q30m
 
 And I've also changed my router settings to forward all packets from  
 port 587 to my openbsd box.
 And I've restarted the computer.
 But I still can't set up an account on my Macintosh to access the  
 openbsd mail server.
 What am I doing wrong? And does sendmail use the IMAP or POP protocol?  
 I prefer to use IMAP if possible.
 
 The name of my machine is zeus.my.domain and my ip is 24.6.209.32.
 I don't have a domain name so I just use my ip.
 
 On my Macintosh I've used these settings to try to create the new  
 account.
 Email Address: m...@24.6.209.32
 Incoming Mail Server: zeus.24.6.209.32
 
 Here's the error message that I got from trying to set up that account  
 on my Macintosh.
 
 The IMAP server zeus.24.6.209.32 is not responding.
 Try checking the network connection, and that the server name is  
 correct.
 Otherwise, the server might be temporarily unavailable. If you  
 continue, you might not be
 able to receive messages.
 
 
 Do I have to add a user account to my mail server? or do I  
 automatically have an account if I'm a user on the OpenBSD system?
 
 Thanks everyone... especially the OpenBSD Team for the best OS in the  
 world.
 

Hi Mark,

You will be in for quite an adventure. Sendmail is only one part of a
fully fledged mail system. What sendmail does in OpenBSD is accept
connections and deliver mail to the local mailbox or relay the mail
to be delivered by another mail server.

If you want to configure an IMAP mailbox for example I would use
dovecot. Now, what else you need is dependent on your needs. So can
you explain to me what you want to be able to do with your mail
system? Feel free to send me a personal message if you need more help
during configuration.

I run a mail system on OpenBSD, which lets me send mail from anywhere
in the world and read my mail from anywhere and it handles all mail
destined to my domain, all in a secure fashion. Software I use to
accomplish this is sendmail, cyrus-sasl, dovecot, procmail, fetchmail.
You might want to read up on those.

Regards,

Ivo van der Sangen



Re: Daily script leaving processes

2008-08-29 Thread Ivo van der Sangen
On Wed, Aug 27, 2008 at 09:42:40PM -0401, jared r r spiegel wrote:
 On Mon, Aug 04, 2008 at 02:38:15PM +0200, Ivo van der Sangen wrote:
 
  When I tried to kill these processes I noticed that I culdn't kill the
  find processes that are apparently stuck in the kernel having WAIT
  status nfsrcvl.
  
  The obvious issue here is the nfs mount, but why does this cause the
  security script to block?
  
  The entry in fstab looks like this:
  
  10.0.0.3:/home/ivo/music /mnt/music nfs ro,nodev,nosuid 0 0
  
  Any ideas?
 
   perhaps add ',-i' to the mountops
 
   without -i, i believe nfs is quite happy to block
   if nfs is not meeting its expectations
 
   i fancy -b also because if i have reason enough to think the nfs
   will go away such that i want -i, i also find that i enjoy what
   -b provides, tho it might not be up your alley
 
 -- 
 
   jared

The problem was in the NFS server configuration. It didn't restart
automatically after a reboot, because of an error in rc.conf.local.

Regards,

Ivo van der Sangen



Daily script leaving processes

2008-08-04 Thread Ivo van der Sangen
Hi,

After adding an nfs mount to a machine the daily security script
always leaves behind processes. A typical part of the output of ps aux
looks like this:

root  5578  0.0  0.0   596 4 ??  I  1:30AM0:00.01 cron: running 
job (cron)
root 32726  0.0  0.0   596 4 ??  Is 1:30AM0:00.02 /bin/sh -c 
/bin/sh
root 27757  0.0  0.0   428 4 ??  I  1:30AM0:00.03 mail -s 
giediprime daily output root
root  4060  0.0  0.0   580 4 ??  I  1:30AM0:00.08 /bin/sh 
/etc/daily
root 21677  0.0  0.0   388 4 ??  I  1:30AM0:00.02 tee 
/var/log/daily.out
root 26435  0.0  0.0   544 4 ??  I  1:31AM0:00.10 sh 
/etc/security
root  2896  0.0  0.0   616 4 ??  I  1:32AM0:00.01 xargs -0 ls 
-ldgT
root 17987  0.0  0.0  1744 4 ??  I  1:32AM0:00.02 sort -k10
root  1872  0.0  0.0   892 4 ??  D  1:32AM0:16.44 find / ( ! 
-fstype local -o -fstype procfs -o -fstype afs -o -fstype xfs )

When I tried to kill these processes I noticed that I culdn't kill the
find processes that are apparently stuck in the kernel having WAIT
status nfsrcvl.

The obvious issue here is the nfs mount, but why does this cause the
security script to block?

The entry in fstab looks like this:

10.0.0.3:/home/ivo/music /mnt/music nfs ro,nodev,nosuid 0 0

Any ideas?

Kind regards,

Ivo van der Sangen



Re: pkg_add not terminating

2008-07-12 Thread Ivo van der Sangen
On Fri, Jul 11, 2008 at 08:31:36PM -0400, Daniel Ouellet wrote:
 Ivo van der Sangen wrote:
 When trying to install texlive_texmf-minimal-2007p2.tgz I run into problems. 
 The
 pkg_add script does not terminate. The progress bar stops at 100% and there 
 are
 still 3 processes running: perl, ftp and gzip.

 It happen sometime when dependency are install. The FTP hang as it doesn't 
 close the connection properly.

 Just look the process and kill ONLY the ftp one when it's at 100% and do 
 not close by itself. This will allow the rest of the regular pkg_add to 
 continue as usual.

 Then the install process will continue as normal and get the next 
 dependency if any as nothing unusual happened.

 Not a big deal when you know.

 Hope this help you.

 Best,

 Daniel

This helps indeed. Nasty, but if you know it not a big problem indeed. Good to
hear it has been addressed in -current.

Regards,

Ivo van der Sangen



pkg_add not terminating

2008-07-11 Thread Ivo van der Sangen
Hi,

When trying to install texlive_texmf-minimal-2007p2.tgz I run into problems. The
pkg_add script does not terminate. The progress bar stops at 100% and there are
still 3 processes running: perl, ftp and gzip.

I have retried it multiple times, deleting any partial packages beforehand. I
have tried downloading the package myself and then running pkg_add. In the end
it always ends up the same.

The architecture in question i386 and I have tried multiple mirrors. What could
be the issue here?

Regards,

Ivo van der Sangen



Re: Solved: 4.3-stable locks when doing shutdown during X session

2008-05-06 Thread Ivo van der Sangen
On Sat, May 03, 2008 at 12:04:53PM +0200, Ivo van der Sangen wrote:
 Hello,
 
 After upgrading my Thinkpad t42 to 4.3-stable I noticed that while I was 
 logged
 in through XDM and I run shutdown -hp now the screen turns black and the
 system doesn't halt properly. After rebooting the root filesystem has to be
 checked for errors, so this clearly is a bad halt.
 
 OpenBSD 4.3 (CUSTOM) #0: Fri May  2 23:37:56 CEST 2008
 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/CUSTOM
 cpu0: Intel(R) Pentium(R) M processor 1.70GHz (GenuineIntel 686-class) 1.70
 GHz
 cpu0:
 FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,
 SS,TM,SBF,EST,TM2
 real mem  = 804220928 (766MB)
 avail mem = 769052672 (733MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 07/27/05, BIOS32 rev. 0 @ 0xfd750, 
 SMBIOS
 rev. 2.33 @ 0xe0
 010 (61 entries)
 bios0: vendor IBM version 1RETDLWW (3.17 ) date 07/27/2005
 bios0: IBM 23733YG
 apm0 at bios0: Power Management spec V1.2
 apm0: battery life expectancy 100%
 apm0: AC on, battery charge high
 acpi at bios0 function 0x0 not configured
 pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
 pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
 pcibios0: PCI bus #6 is the last bus
 bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000!
 0xe/0x1
 cpu0 at mainbus0
 cpu0: Enhanced SpeedStep 1700 MHz (1340 mV): speeds: 1700, 1400, 1200, 1000,
 800, 600 MHz
 pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
 pchb0 at pci0 dev 0 function 0 Intel 82855PM Host rev 0x03
 agp0 at pchb0: aperture at 0xd000, size 0x1000
 ppb0 at pci0 dev 1 function 0 Intel 82855PM AGP rev 0x03
 pci1 at ppb0 bus 1
 vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M10 NP rev 0x00
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 11
 uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 11
 uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 11
 ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81
 pci2 at ppb1 bus 2
 cbb0 at pci2 dev 0 function 0 TI PCI4520 CardBus rev 0x01: irq 11
 cbb1 at pci2 dev 0 function 1 TI PCI4520 CardBus rev 0x01: irq 11
 em0 at pci2 dev 1 function 0 Intel PRO/1000MT (82540EP) rev 0x03: irq 11,
 address 00:11:25:2f:
 a3:76
 ath0 at pci2 dev 2 function 0 Atheros AR5212 (IBM MiniPCI) rev 0x01: irq 11
 ath0: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, WOR1W, address 
 00:05:4e:48:66:8c
 cardslot0 at cbb0 slot 0 flags 0
 cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0xb0
 pcmcia0 at cardslot0
 cardslot1 at cbb1 slot 1 flags 0
 cardbus1 at cardslot1: bus 6 device 0 cacheline 0x8, lattimer 0xb0
 pcmcia1 at cardslot1
 ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01: 24-bit timer
 at 3579545Hz
 pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA, channel  0
 configured to co
 mpatibility, channel 1 configured to compatibility
 wd0 at pciide0 channel 0 drive 0: HTS726060M9AT00
 wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
 atapiscsi0 at pciide0 channel 1 drive 0
 scsibus0 at atapiscsi0: 2 targets
 cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, RW/DVD GCC-4242N, 0201 SCSI0 5/cdrom
 removable
 cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
 ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 11
 iic0 at ichiic0
 spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC2700CL2.5
 spdmem1 at iic0 addr 0x51: 256MB DDR SDRAM non-parity PC2700CL2.5
 auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x01: irq 11, ICH4
 AC97
 ac97: codec id 0x41445374 (Analog Devices AD1981B)
 ac97: codec features headphone, 20 bit DAC, No 3D Stereo
 audio0 at auich0
 Intel 82801DB Modem rev 0x01 at pci0 dev 31 function 6 not configured
 usb1 at uhci0: USB revision 1.0
 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
 usb2 at uhci1: USB revision 1.0
 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1
 usb3 at uhci2: USB revision 1.0
 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1
 isa0 at ichpcib0
 isadma0 at isa0
 pckbc0 at isa0 port 0x60/5
 pckbd0 at pckbc0 (kbd slot)
 pckbc0: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard, using wsdisplay0
 pms0 at pckbc0 (aux slot)
 pckbc0: using irq 12 for aux slot
 wsmouse0 at pms0 mux 0
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 spkr0 at pcppi0
 lpt2 at isa0 port 0x3bc/4: polled
 aps0 at isa0 port 0x1600/31
 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
 biomask effd netmask effd

4.3-stable locks when doing shutdown during X session

2008-05-03 Thread Ivo van der Sangen
.  Filesystem is not clean - run fsck

Note: The same applies to a GENERIC kernel (I tested it).

The system halts properly when I log out my X session and run the shutdown from
a tty. I have no idea what is causing this and if it is suitable for a bug
report.

Regards,

Ivo van der Sangen



Re: 4.3-stable locks when doing shutdown during X session

2008-05-03 Thread Ivo van der Sangen
On Sat, May 03, 2008 at 01:29:11PM +0200, Tobias Ulmer wrote:
 On Sat, May 03, 2008 at 12:04:53PM +0200, Ivo van der Sangen wrote:
  Hello,
  
  After upgrading my Thinkpad t42 to 4.3-stable I noticed that while I was 
  logged
  in through XDM and I run shutdown -hp now the screen turns black and the
  system doesn't halt properly. After rebooting the root filesystem has to be
  checked for errors, so this clearly is a bad halt.
  
  OpenBSD 4.3 (CUSTOM) #0: Fri May  2 23:37:56 CEST 2008
  [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/CUSTOM
  cpu0: Intel(R) Pentium(R) M processor 1.70GHz (GenuineIntel 686-class) 
  1.70
  GHz
  cpu0:
  FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,
  SS,TM,SBF,EST,TM2
  real mem  = 804220928 (766MB)
  avail mem = 769052672 (733MB)
  mainbus0 at root
  bios0 at mainbus0: AT/286+ BIOS, date 07/27/05, BIOS32 rev. 0 @ 0xfd750, 
  SMBIOS
  rev. 2.33 @ 0xe0
  010 (61 entries)
  bios0: vendor IBM version 1RETDLWW (3.17 ) date 07/27/2005
  bios0: IBM 23733YG
 
 Try updating the bios

I am running BIOS v3.23 now. The problem remains the same, however.

OpenBSD 4.3 (CUSTOM) #0: Fri May  2 23:37:56 CEST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/CUSTOM
cpu0: Intel(R) Pentium(R) M processor 1.70GHz (GenuineIntel 686-class) 1.70 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 804220928 (766MB)
avail mem = 769052672 (733MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 06/18/07, BIOS32 rev. 0 @ 0xfd750, SMBIOS 
rev. 2.33 @ 0xe0010 (61 entries)
bios0: vendor IBM version 1RETDRWW (3.23 ) date 06/18/2007
bios0: IBM 23733YG
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 100%
apm0: AC on, battery charge high
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xfd6e0/0x920
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdea0/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00)
pcibios0: PCI bus #6 is the last bus
bios0: ROM list: 0xc/0x1 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 
0xe/0x1
cpu0 at mainbus0
cpu0: Enhanced SpeedStep 1700 MHz (1340 mV): speeds: 1700, 1400, 1200, 1000, 
800, 600 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 Intel 82855PM Host rev 0x03
agp0 at pchb0: aperture at 0xd000, size 0x1000
ppb0 at pci0 dev 1 function 0 Intel 82855PM AGP rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 ATI Radeon Mobility M10 NP rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 11
uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 11
uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 11
ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb1 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81
pci2 at ppb1 bus 2
cbb0 at pci2 dev 0 function 0 TI PCI4520 CardBus rev 0x01: irq 11
cbb1 at pci2 dev 0 function 1 TI PCI4520 CardBus rev 0x01: irq 11
em0 at pci2 dev 1 function 0 Intel PRO/1000MT (82540EP) rev 0x03: irq 11, 
address 00:11:25:2f:a3:76
ath0 at pci2 dev 2 function 0 Atheros AR5212 (IBM MiniPCI) rev 0x01: irq 11
ath0: AR5213 5.6 phy 4.1 rf5111 1.7 rf2111 2.3, WOR1W, address 00:05:4e:48:66:8c
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 6 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01: 24-bit timer 
at 3579545Hz
pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: HTS726060M9AT00
wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, RW/DVD GCC-4242N, 0201 SCSI0 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 11
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR SDRAM non-parity PC2700CL2.5
spdmem1 at iic0 addr 0x51: 256MB DDR SDRAM non-parity PC2700CL2.5
auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x01: irq 11, ICH4 
AC97
ac97: codec id 0x41445374 (Analog Devices AD1981B)
ac97: codec features headphone, 20 bit DAC, No 3D Stereo
audio0 at auich0
Intel 82801DB Modem rev 0x01 at pci0 dev 31 function 6 not configured
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1
usb2

Re: ntfs usb drive fail to mount

2008-04-26 Thread Ivo van der Sangen
On Thu, Apr 24, 2008 at 06:03:13PM -0400, jmc wrote:
 --- Lord Sporkton [Thu, Apr 24, 2008 at 02:32:37PM -0700]: ---7
  I have an NTFS drive attached via USB that was previously attached to
  an XP home system
 
 [ ... ]
 
   #  mount -t ntfs -r /dev/sd0i /mnt/usb2
  mount_ntfs: /dev/sd0i on /mnt/usb2: Operation not supported
 
 you don't say if7you're using a GENERIC kernel or not, but from:
 
 http://www.openbsd.org/faq/faq14.html#foreignfs
 
  Once you have determined which partition it is you want to use, you can
  move to the final step: mounting the filesystem contained in it. Most
  filesystems are supported in the GENERIC kernel: just have a look at the
  kernel configuration file, located in the /usr/src/sys/arch/arch/conf
  directory. However, some are not, e.g. the NTFS support is experimental
  and therefore not included in GENERIC. If you want to use one of the
  filesystems not supported in GENERIC, you will need to build a custom
  kernel.
 

Would it be a good idea to note the lack of support for NTFS
filesystems in a GENERIC kerel in mount_ntfs(8)? If it is appreciated
I will send a diff.

Regards,

Ivo van der Sangen



Re: License Violation - ksh

2007-12-02 Thread Ivo van der Sangen
On Sun, Dec 02, 2007 at 07:30:02PM -, Pedro de Oliveira wrote:
 Hello,
 Someone on IRC just posted this link http://www.delilinux.de/oksh/ , seems
 like someone ported OpenBSD ksh to Linux and licensed it under GPLv3. Isn't
 this a license violation?

It seems that this is not a violation since the ksh-source is in the public
domain. Read /usr/src/bin/ksh/LEGAL.

Regards,

Ivo van der Sangen



Re: License Violation - ksh

2007-12-02 Thread Ivo van der Sangen
On Sun, Dec 02, 2007 at 06:14:09PM -0300, Andr?s wrote:
 On Dec 2, 2007 5:42 PM, Marco S Hyman [EMAIL PROTECTED] wrote:
  Miod Vallat writes:
But some parts of OpenBSD's ksh are BSD-licensed files, which did not
come from pdksh initially.
 
  That's not what /usr/src/bin/ksh/LEGAL states, but I didn't look
  further.  OK, looking I see that alloc.c and mknod.c have copyrights.
 
Relicensing these files under GPLv3 is only possible if their authors
gave permission.
 
  Very true.   Were they relicensed, or tossed and re-written from
  scratch?
 
  // marc
 
 
 
 As far as I can see, a COPYING file (containing the GPLv3) was placed
 along the others files of OpenBSD's ksh. The license of alloc.c, for
 example, has not been modified.

None of the licenses have actually been modified. The fact that there is a
COPYING file added which contains a copy of the GPLv3 seems harmless, but is
confusing.

Ivo



Sending mail from rc.local

2007-04-15 Thread Ivo van der Sangen
I am trying to send mail from rc.local to inform users about reboots. I
wrote a script /root/reboot_notification containing the following:

#!/bin/sh
for user in `/bin/cat /root/reboot_notification_users`; do
echo $SERVER has rebooted at `/bin/date` | /usr/bin/mail -s $server 
reboot $user
done

Where $server is replaced by the hostname of the server.

I added the following entry to rc.local:

if [ -x /root/reboot_notification ]; then
echo -n ' notifying users about reboot'; /root/reboot_notification
fi

I made /root/reboot_notification to be world-executable, although I
don't think that's neccesary.

It works like a charm if I execute the script from a user-shell.

The problem is that it doesn't work from rc.local and I can't figure out
why. I tried to add /usr/bin/touch /tmp/test to rc.local and that
also didn't work which made me suspect that only programs from /bin and
/sbin are allowed to be run. At the same time a Sparc-user informed me it
works perfectly for him.

I am running OpenBSD 4.0 stable on i386.

Could this have something to do with sendmail having a warmup-time? I
tried adding a sleep 30 before the line rc.local and that didn't help.

Does anybody have an idea what I am overlooking?

Ivo van der Sangen



Re: Sending mail from rc.local

2007-04-15 Thread Ivo van der Sangen
On Mon, Apr 16, 2007 at 01:40:01AM +0300, Keith Richardson wrote:
 The fact that touch is not working suggests rc.local is not even being=20
 called

I tested it again. Touch looks to be working now, although I noticed
that I had to fork mysqld_safe. Apparently the script stopped when I
didn't.

I have verified that /etc/rc.local is being called, since outcommenting
the lines starting the daemons I usually run made sure they didn't.

 what is the output during boot time?=20

I have no display connected. I operate the server through OpenSSH.

Also I have placed an else statement for the executable bit test. The
test succeeds so the script should be called from rc.local.

Ivo van der Sangen