> Date: Sat, 30 Nov 2013 00:14:05 -0600
> From: [email protected]
> To: [email protected]; [email protected]
> Subject: Re: Bug#713135: upstart: Some services doesn't start when Upstart
> installed.
>
> Control: tags -1 moreinfo
>
> Hi Piotr,
>
>
> The binfmt-support package provides an upstart job, which does:
>
> start on filesystem
>
> And insserv will wait for the binfmt-support upstart job to be started. If
> the filesystem event is never started, insserv will not finish, as you
> describe.
>
> Is mountall still running at the time you run the insserv command? Can you
> attach the /etc/fstab from the affected system?
>
Hi,
Problem probably is in startpar-bridge. Since last mail also samba-ad-dc
service/job is affected. Both services upstart starts properly:
piotr@vdebian:~$ fgrep -n 'samba-ad-dc' /var/log/dmesg
1106:[ 9.983481] init: samba-ad-dc goal changed from stop to start
1107:[ 9.986362] init: samba-ad-dc state changed from waiting to starting
1129:[ 10.070072] init: samba-ad-dc state changed from starting to pre-start
1130:[ 10.082140] init: samba-ad-dc pre-start process (525)
1160:[ 10.311334] init: samba-ad-dc pre-start process (525) exited normally
1161:[ 10.320000] init: samba-ad-dc state changed from pre-start to spawned
1162:[ 10.347599] init: samba-ad-dc main process (560)
1220:[ 10.901672] init: samba-ad-dc main process (560) became new process
(577)
1221:[ 10.910167] init: samba-ad-dc state changed from spawned to post-start
1222:[ 10.914480] init: samba-ad-dc state changed from post-start to running
1243:[ 11.053158] init: startpar-bridge (samba-ad-dc--started) goal changed
from stop to start
1244:[ 11.055710] init: startpar-bridge (samba-ad-dc--started) state changed
from waiting to starting
1248:[ 11.073539] init: startpar-bridge (samba-ad-dc--started) state changed
from starting to pre-start
1249:[ 11.078892] init: startpar-bridge (samba-ad-dc--started) state changed
from pre-start to spawned
1250:[ 11.090826] init: startpar-bridge (samba-ad-dc--started) main process
(582)
1251:[ 11.103917] init: startpar-bridge (samba-ad-dc--started) state changed
from spawned to post-start
1252:[ 11.109866] init: startpar-bridge (samba-ad-dc--started) state changed
from post-start to running
1255:[ 11.136890] init: startpar-bridge (samba-ad-dc--started) main process
(582) exited normally
1256:[ 11.142071] init: startpar-bridge (samba-ad-dc--started) goal changed
from start to stop
1257:[ 11.145444] init: startpar-bridge (samba-ad-dc--started) state changed
from running to stopping
1266:[ 11.189734] init: startpar-bridge (samba-ad-dc--started) state changed
from stopping to killed
1267:[ 11.192044] init: startpar-bridge (samba-ad-dc--started) state changed
from killed to post-stop
1268:[ 11.203857] init: startpar-bridge (samba-ad-dc--started) state changed
from post-stop to waiting
1282:[ 11.273985] init: samba-ad-dc main process (577) terminated with status
1
1283:[ 11.277773] init: samba-ad-dc goal changed from start to stop
1284:[ 11.283858] init: samba-ad-dc state changed from running to stopping
1299:[ 11.321921] init: samba-ad-dc state changed from stopping to killed
1300:[ 11.327428] init: samba-ad-dc state changed from killed to post-stop
1301:[ 11.329504] init: samba-ad-dc state changed from post-stop to waiting
1303:[ 11.334186] init: startpar-bridge (samba-ad-dc--stopped) goal changed
from stop to start
1304:[ 11.336061] init: startpar-bridge (samba-ad-dc--stopped) state changed
from waiting to starting
1306:[ 11.340603] init: startpar-bridge (samba-ad-dc--stopped) state changed
from starting to pre-start
1307:[ 11.347629] init: startpar-bridge (samba-ad-dc--stopped) state changed
from pre-start to spawned
1308:[ 11.352394] init: startpar-bridge (samba-ad-dc--stopped) main process
(583)
1309:[ 11.353882] init: startpar-bridge (samba-ad-dc--stopped) state changed
from spawned to post-start
1310:[ 11.356559] init: startpar-bridge (samba-ad-dc--stopped) state changed
from post-start to running
1319:[ 11.416504] init: startpar-bridge (samba-ad-dc--stopped) main process
(583) exited normally
1320:[ 11.418127] init: startpar-bridge (samba-ad-dc--stopped) goal changed
from start to stop
1321:[ 11.419993] init: startpar-bridge (samba-ad-dc--stopped) state changed
from running to stopping
1335:[ 11.457552] init: startpar-bridge (samba-ad-dc--stopped) state changed
from stopping to killed
1336:[ 11.460536] init: startpar-bridge (samba-ad-dc--stopped) state changed
from killed to post-stop
1337:[ 11.462751] init: startpar-bridge (samba-ad-dc--stopped) state changed
from post-stop to waiting
piotr@vdebian:~$ fgrep -n 'binfmt' /var/log/dmesg
360:[ 5.570788] init: binfmt-support goal changed from stop to start
361:[ 5.574217] init: binfmt-support state changed from waiting to starting
378:[ 5.702848] init: binfmt-support state changed from starting to pre-start
379:[ 5.706209] init: binfmt-support state changed from pre-start to spawned
380:[ 5.734867] init: binfmt-support main process (269)
381:[ 5.742506] init: binfmt-support state changed from spawned to post-start
382:[ 5.745301] init: binfmt-support state changed from post-start to running
400:[ 5.850468] init: startpar-bridge (binfmt-support--started) goal changed
from stop to start
401:[ 5.852037] init: startpar-bridge (binfmt-support--started) state
changed from waiting to starting
413:[ 5.918123] init: startpar-bridge (binfmt-support--started) state
changed from starting to pre-start
414:[ 5.921251] init: startpar-bridge (binfmt-support--started) state
changed from pre-start to spawned
415:[ 5.926429] init: startpar-bridge (binfmt-support--started) main process
(276)
416:[ 5.928833] init: startpar-bridge (binfmt-support--started) state
changed from spawned to post-start
417:[ 5.939506] init: startpar-bridge (binfmt-support--started) state
changed from post-start to running
472:[ 6.940999] init: binfmt-support main process (269) exited normally
473:[ 6.943373] init: binfmt-support goal changed from start to stop
474:[ 6.949994] init: binfmt-support state changed from running to stopping
478:[ 6.982013] init: startpar-bridge (binfmt-support--started) main process
(276) exited normally
481:[ 7.006892] init: startpar-bridge (binfmt-support--started) goal changed
from start to stop
482:[ 7.026978] init: startpar-bridge (binfmt-support--started) state
changed from running to stopping
499:[ 7.219619] init: binfmt-support state changed from stopping to killed
500:[ 7.227276] init: binfmt-support state changed from killed to post-stop
501:[ 7.230591] init: binfmt-support state changed from post-stop to waiting
507:[ 7.250543] init: startpar-bridge (binfmt-support--started) state
changed from stopping to killed
508:[ 7.252535] init: startpar-bridge (binfmt-support--started) state
changed from killed to post-stop
509:[ 7.254918] init: startpar-bridge (binfmt-support--started) state
changed from post-stop to waiting
533:[ 7.350558] init: startpar-bridge (binfmt-support--stopped) goal changed
from stop to start
536:[ 7.362684] init: startpar-bridge (binfmt-support--stopped) state
changed from waiting to starting
544:[ 7.386051] init: startpar-bridge (binfmt-support--stopped) state
changed from starting to pre-start
545:[ 7.388258] init: startpar-bridge (binfmt-support--stopped) state
changed from pre-start to spawned
546:[ 7.394198] init: startpar-bridge (binfmt-support--stopped) main process
(387)
547:[ 7.396552] init: startpar-bridge (binfmt-support--stopped) state
changed from spawned to post-start
548:[ 7.408111] init: startpar-bridge (binfmt-support--stopped) state
changed from post-start to running
556:[ 7.432339] init: startpar-bridge (binfmt-support--stopped) main process
(387) exited normally
557:[ 7.434402] init: startpar-bridge (binfmt-support--stopped) goal changed
from start to stop
558:[ 7.436380] init: startpar-bridge (binfmt-support--stopped) state
changed from running to stopping
579:[ 7.494331] init: startpar-bridge (binfmt-support--stopped) state
changed from stopping to killed
580:[ 7.496136] init: startpar-bridge (binfmt-support--stopped) state
changed from killed to post-stop
581:[ 7.498851] init: startpar-bridge (binfmt-support--stopped) state
changed from post-stop to waiting
But both jobs ends quickly after start what probably causes startpar waits like
this:
piotr@vdebian:~$ ps aux|fgrep startpar
root 944 0.1 0.2 2416 2412 ? SL 17:33 0:02 startpar -p 4
-t 20 -T 3 -M start -P N -R 2
After commands:
piotr@vdebian:~$ sudo start binfmt-support
binfmt-support stop/waiting
piotr@vdebian:~$ sudo start samba-ad-dc
samba-ad-dc start/running, process 3054
startpar finally ends his job and /etc/init.d/rc 2 ends boot process.
--
Piotr Borkowski