about sysvinit
Cyrille Lefevre
cyrille.lefevre-lists@laposte.net
Mon Feb 15 03:18:00 GMT 2010
Cyrille Lefevre a écrit :
let's try -apps ?
> I use ksh as /bin/sh bcoz pdksh is far more performant than bash
> (the same heavy script takes around 2.5 mins using ksh and around 6 mins
> using bash !)
> $ ls -l /usr/bin/sh
> lrwxrwxrwx 1 root root 7 2010-02-08 17:11 /usr/bin/sh -> ksh.exe
>
> But :
>
> package version : *** sysvinit-2.86-3.tar.bz2
> $ init-config
> /usr/bin/init-config[26]: source: not found
> /usr/bin/init-config[158]: csih_make_dir: not found
> /usr/bin/init-config[163]: csih_make_dir: not found
> /usr/bin/init-config[168]: csih_make_dir: not found
> /usr/bin/init-config[173]: csih_make_dir: not found
> /usr/bin/init-config[178]: csih_make_dir: not found
> ^C
>
> => the first line should be #!/bin/bash, not #!/bin/sh
>
> /bin/sh is not necesserally bash. if your script needs
> bash extensions, you must use #!/bin/bash.
>
> also, init seems to PANIC in some way but no core :
>
> $ cat /var/log/messages
> Feb 8 17:50:09 mv0155 init: PANIC: segmentation violation! sleeping for
> 30 seconds.
> Feb 8 17:50:09 mv0155 init: can't open /dev/console
> Feb 8 17:50:10 mv0155 init: PID 3952: `init' service started
>
> $ ps -ef
> SYSTEM 3952 1 ? 17:50:08 /usr/bin/cygrunsrv
> SYSTEM 3188 3952 con 17:50:08 /sbin/init
> $ uname -a
> CYGWIN_NT-5.2 unknown 1.7.1(0.218/5/3) 2009-12-07 11:48 i686 Cygwin
>
> configuration was done using :
>
> $ bash /bin/init-config
> *** Query: Do you want to overwrite existing /etc/inittab file? (yes/no)
> yes
> Creating default /etc/inittab file
> *** Query: Do you want to overwrite existing /etc/rc file? (yes/no) yes
> Creating default /etc/rc file
> *** Warning: The init service is already installed.
> *** Warning: The following function requires administrator privileges!
> *** Query: Do you want to install init as service? (yes/no) yes
>
> *** Info: The init service has been installed under the LocalSystem
> *** Info: account (also known as SYSTEM). To start the service now, call
> *** Info: `net start init' or `cygrunsrv -S init'. Otherwise, it
> *** Info: will start automatically after the next reboot.
>
> *** Info: Check /etc/inittab and /etc/rc first, if they suit your needs.
>
> Configuration finished. Have fun!
>
> I've also tried to use /etc/defaults/etc/inittab from
> initscripts-0.9-2.tar.bz2 instead of the one from init-config w/o
> succes. rc.sysinit seem to be launched, but not /etc/rc.d/rc (PANIC ...)
>
> cygcheck -v attached
Regards,
Cyrille Lefevre
--
mailto:Cyrille.Lefevre-lists@laposte.net
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck-sv.txt
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20100215/c78c5c55/attachment.txt>
More information about the Cygwin-apps
mailing list