Photon hangs on 'shutdown -b'

We are having a problem getting photon to shutdown using the ‘shutdown -b’
command. Here is the situation:

  1. We have put ‘ph’ as the last line in the systinit file so the photon GUI
    will start automatically. This is required as we are building a system that
    starts automatically.
  2. After the user logs in and attempts to go into a shell an run
    ‘shutdown -b’ as the superuser, the system hangs after doing a little work.

We cannot determine why this is happening. Has anyone else seen this
problem? If so what is the solution, or alternative way to boot/shutdown
automatically?


Tom Fitzgerald, SEA, Inc.
114C Mansfield Hollow Rd.
Mansfiled Center, CT 06250
tomf@scieng.com
+1 (860) 450-1717

‘-b’ options of Proc32? Other than that it should work.

=D.

“Tom Fitzgerald” <tfitz1@hotmail.com> wrote in message
news:a782ce$5bb$1@inn.qnx.com

We are having a problem getting photon to shutdown using the ‘shutdown -b’
command. Here is the situation:

  1. We have put ‘ph’ as the last line in the systinit file so the photon
    GUI
    will start automatically. This is required as we are building a system
    that
    starts automatically.
  2. After the user logs in and attempts to go into a shell an run
    ‘shutdown -b’ as the superuser, the system hangs after doing a little
    work.

We cannot determine why this is happening. Has anyone else seen this
problem? If so what is the solution, or alternative way to boot/shutdown
automatically?


Tom Fitzgerald, SEA, Inc.
114C Mansfield Hollow Rd.
Mansfiled Center, CT 06250
tomf@scieng.com
+1 (860) 450-1717

Hi Dave,

Which -b option/integer for Proc32 are you referring to? One of the
things I did not point out in the previous message is that when we
instantiate photon from the command line (after login) using ‘ph’, we can
use ‘shutdown -b’ fine. QNX runs through its shutdown sequence, terminates
applications and closes files safely. However, if the ‘ph’ is placed in the
sysinit file and login is performed via photon GUI, the system cannot
execute ‘shutdown -b’ correctly. At some point (no way of knowing where) it
hangs. We’ll work with the Proc32 ‘-b’ argument an see what we can come up
with. In the mean time, could you elaborate on the ‘-b’ issue with Proc32?
We appreciate the input!


Tom Fitzgerald, SEA, Inc.
114C Mansfield Hollow Rd.
Mansfield Center, CT 06250
tomf@scieng.com
+1 (860) 450-1717

“Dave Lees” <Dave40@rochester.rr.com> wrote in message
news:a78qc7$kuh$1@inn.qnx.com

‘-b’ options of Proc32? Other than that it should work.

=D.

“Tom Fitzgerald” <> tfitz1@hotmail.com> > wrote in message
news:a782ce$5bb$> 1@inn.qnx.com> …
We are having a problem getting photon to shutdown using the
‘shutdown -b’
command. Here is the situation:

  1. We have put ‘ph’ as the last line in the systinit file so the photon
    GUI
    will start automatically. This is required as we are building a system
    that
    starts automatically.
  2. After the user logs in and attempts to go into a shell an run
    ‘shutdown -b’ as the superuser, the system hangs after doing a little
    work.

We cannot determine why this is happening. Has anyone else seen
this
problem? If so what is the solution, or alternative way to boot/shutdown
automatically?


Tom Fitzgerald, SEA, Inc.
114C Mansfield Hollow Rd.
Mansfiled Center, CT 06250
tomf@scieng.com
+1 (860) 450-1717
\

Tom,

I misunderstood the problem. I had a problem before and played with the -b
at random until it worked, but if it works outside photon…
I have set up several machines with ph as last line in sysinit without
problems.
Perhaps it is because I have also a tinit -t /dev/con1 & before it? But now
I am guessing wildly. Sorry.

=D

“Tom Fitzgerald” <tfitz1@hotmail.com> wrote in message
news:a7a95q$og9$1@inn.qnx.com

Hi Dave,

Which -b option/integer for Proc32 are you referring to? One of
the
things I did not point out in the previous message is that when we
instantiate photon from the command line (after login) using ‘ph’, we can
use ‘shutdown -b’ fine. QNX runs through its shutdown sequence,
terminates
applications and closes files safely. However, if the ‘ph’ is placed in
the
sysinit file and login is performed via photon GUI, the system cannot
execute ‘shutdown -b’ correctly. At some point (no way of knowing where)
it
hangs. We’ll work with the Proc32 ‘-b’ argument an see what we can come
up
with. In the mean time, could you elaborate on the ‘-b’ issue with
Proc32?
We appreciate the input!


Tom Fitzgerald, SEA, Inc.
114C Mansfield Hollow Rd.
Mansfield Center, CT 06250
tomf@scieng.com
+1 (860) 450-1717

“Dave Lees” <> Dave40@rochester.rr.com> > wrote in message
news:a78qc7$kuh$> 1@inn.qnx.com> …
‘-b’ options of Proc32? Other than that it should work.

=D.

“Tom Fitzgerald” <> tfitz1@hotmail.com> > wrote in message
news:a782ce$5bb$> 1@inn.qnx.com> …
We are having a problem getting photon to shutdown using the
‘shutdown -b’
command. Here is the situation:

  1. We have put ‘ph’ as the last line in the systinit file so the
    photon
    GUI
    will start automatically. This is required as we are building a
    system
    that
    starts automatically.
  2. After the user logs in and attempts to go into a shell an run
    ‘shutdown -b’ as the superuser, the system hangs after doing a little
    work.

We cannot determine why this is happening. Has anyone else seen
this
problem? If so what is the solution, or alternative way to
boot/shutdown
automatically?


Tom Fitzgerald, SEA, Inc.
114C Mansfield Hollow Rd.
Mansfiled Center, CT 06250
tomf@scieng.com
+1 (860) 450-1717


\

Hi Tom,

  1. How does the user log in? Is it when Photon starts up it has a login
    window?
  2. Do you start any tasks from the “/.photon/phapps” script?
  3. When you say the system hangs is there anything in Photon functioning?
    Can
    you get to a shell and see whats running? Or can you look at whats running
    from
    another node?

A problem we have seen is where a task or shell has not fully terminated,
such as waiting
on its parents notification of death, that is may not allow the shutdown to
complete. Take
a look at situations where you have scripts, such as ‘ph’, starting other
scripts and some
where one of these is left running.


“Tom Fitzgerald” <tfitz1@hotmail.com> wrote in message
news:a782ce$5bb$1@inn.qnx.com

We are having a problem getting photon to shutdown using the ‘shutdown -b’
command. Here is the situation:

  1. We have put ‘ph’ as the last line in the systinit file so the photon
    GUI
    will start automatically. This is required as we are building a system
    that
    starts automatically.
  2. After the user logs in and attempts to go into a shell an run
    ‘shutdown -b’ as the superuser, the system hangs after doing a little
    work.

We cannot determine why this is happening. Has anyone else seen this
problem? If so what is the solution, or alternative way to boot/shutdown
automatically?


Tom Fitzgerald, SEA, Inc.
114C Mansfield Hollow Rd.
Mansfiled Center, CT 06250
tomf@scieng.com
+1 (860) 450-1717

Instead of using shutdown -b use ‘phshutdown’ which is Graphical version of
shutdown utility and it works fine.
MKS

Dave Lees <Dave40@rochester.rr.com> wrote in message
news:a7b92c$gvu$1@inn.qnx.com

Tom,

I misunderstood the problem. I had a problem before and played with
the -b
at random until it worked, but if it works outside photon…
I have set up several machines with ph as last line in sysinit without
problems.
Perhaps it is because I have also a tinit -t /dev/con1 & before it? But
now
I am guessing wildly. Sorry.

=D

“Tom Fitzgerald” <> tfitz1@hotmail.com> > wrote in message
news:a7a95q$og9$> 1@inn.qnx.com> …
Hi Dave,

Which -b option/integer for Proc32 are you referring to? One of
the
things I did not point out in the previous message is that when we
instantiate photon from the command line (after login) using ‘ph’, we
can
use ‘shutdown -b’ fine. QNX runs through its shutdown sequence,
terminates
applications and closes files safely. However, if the ‘ph’ is placed in
the
sysinit file and login is performed via photon GUI, the system cannot
execute ‘shutdown -b’ correctly. At some point (no way of knowing
where)
it
hangs. We’ll work with the Proc32 ‘-b’ argument an see what we can come
up
with. In the mean time, could you elaborate on the ‘-b’ issue with
Proc32?
We appreciate the input!


Tom Fitzgerald, SEA, Inc.
114C Mansfield Hollow Rd.
Mansfield Center, CT 06250
tomf@scieng.com
+1 (860) 450-1717

“Dave Lees” <> Dave40@rochester.rr.com> > wrote in message
news:a78qc7$kuh$> 1@inn.qnx.com> …
‘-b’ options of Proc32? Other than that it should work.

=D.

“Tom Fitzgerald” <> tfitz1@hotmail.com> > wrote in message
news:a782ce$5bb$> 1@inn.qnx.com> …
We are having a problem getting photon to shutdown using the
‘shutdown -b’
command. Here is the situation:

  1. We have put ‘ph’ as the last line in the systinit file so the
    photon
    GUI
    will start automatically. This is required as we are building a
    system
    that
    starts automatically.
  2. After the user logs in and attempts to go into a shell an run
    ‘shutdown -b’ as the superuser, the system hangs after doing a
    little
    work.

We cannot determine why this is happening. Has anyone else seen
this
problem? If so what is the solution, or alternative way to
boot/shutdown
automatically?


Tom Fitzgerald, SEA, Inc.
114C Mansfield Hollow Rd.
Mansfiled Center, CT 06250
tomf@scieng.com
+1 (860) 450-1717




\