stop on starting rc6 or starting rc0

Asked by Ivan Gromov

Hello,
I use Upstart 0.3.8

As I understand these two are equivalent:
1.
stop on starting rc6
stop on starting rc0

and
2.
stop on starting rc6 or starting rc0 ,isnt it?

Runlevel 6 (rc6) is used for rebooting my system, runlevel 0 is used for poweroff.
But when I use option 1., it works only on starting runlevel 6, and when I use option 2., it only works on starting rc0.

Any help is much appreciated.

Question information

Language:
English Edit question
Status:
Solved
For:
upstart Edit question
Assignee:
No assignee Edit question
Solved by:
Scott James Remnant (Canonical)
Solved:
Last query:
Last reply:
Revision history for this message
Best Scott James Remnant (Canonical) (canonical-scott) said :
#1

On Wed, 2009-03-25 at 16:05 +0000, Ivan wrote:

> As I understand these two are equivalent:
> 1.
> stop on starting rc6
> stop on starting rc0
>
> and
> 2.
> stop on starting rc6 or starting rc0 ,isnt it?
>
No.

The former is the correct syntax for Upstart 0.3.x while the latter is
the correct syntax for Upstart 0.5.x

Later versions of Upstart introduce an entirely different syntax
altogether.

Scott
--
Scott James Remnant
<email address hidden>

Revision history for this message
Ivan Gromov (gromivan) said :
#2

Thanks Scott James Remnant, that solved my question.