Всем привет!
Есть терминал под управлением Ubuntu с Openbox.
Содержимое ~/.config/openbox/autostart
vnc4server &
firefox &
После загрузки в списке процессов:
# ps -A
PID TTY TIME CMD
1 ? 00:00:01 init
2 ? 00:00:00 kthreadd
3 ? 00:00:00 ksoftirqd/0
4 ? 00:00:00 kworker/0:0
5 ? 00:00:00 kworker/u:0
6 ? 00:00:00 migration/0
7 ? 00:00:00 watchdog/0
8 ? 00:00:00 migration/1
9 ? 00:00:00 kworker/1:0
10 ? 00:00:00 ksoftirqd/1
11 ? 00:00:00 kworker/0:1
12 ? 00:00:00 watchdog/1
13 ? 00:00:00 cpuset
14 ? 00:00:00 khelper
15 ? 00:00:00 kdevtmpfs
16 ? 00:00:00 netns
17 ? 00:00:00 kworker/u:1
18 ? 00:00:00 sync_supers
19 ? 00:00:00 bdi-default
20 ? 00:00:00 kintegrityd
21 ? 00:00:00 kblockd
22 ? 00:00:00 ata_sff
23 ? 00:00:00 khubd
24 ? 00:00:00 md
25 ? 00:00:00 kworker/1:1
27 ? 00:00:00 khungtaskd
28 ? 00:00:00 kswapd0
29 ? 00:00:00 ksmd
30 ? 00:00:00 khugepaged
31 ? 00:00:00 fsnotify_mark
32 ? 00:00:00 ecryptfs-kthrea
33 ? 00:00:00 crypto
41 ? 00:00:00 kthrotld
42 ? 00:00:00 scsi_eh_0
43 ? 00:00:00 scsi_eh_1
44 ? 00:00:00 kworker/u:2
45 ? 00:00:00 scsi_eh_2
46 ? 00:00:00 scsi_eh_3
47 ? 00:00:00 kworker/u:3
48 ? 00:00:00 kworker/u:4
49 ? 00:00:00 kworker/u:5
68 ? 00:00:00 devfreq_wq
207 ? 00:00:00 kworker/0:2
221 ? 00:00:00 jbd2/sda1-8
222 ? 00:00:00 ext4-dio-unwrit
312 ? 00:00:00 upstart-udev-br
315 ? 00:00:00 udevd
414 ? 00:00:00 irq/44-mei
477 ? 00:00:00 cfg80211
482 ? 00:00:00 dbus-daemon
512 ? 00:00:00 hd-audio0
525 ? 00:00:00 rsyslogd
548 ? 00:00:00 udevd
549 ? 00:00:00 udevd
707 ? 00:00:00 upstart-socket-
729 ? 00:00:00 kworker/1:2
730 ? 00:00:00 flush-8:0
758 ? 00:00:00 dhclient3
780 ? 00:00:00 sshd
859 tty4 00:00:00 getty
863 tty5 00:00:00 getty
868 tty2 00:00:00 getty
870 tty3 00:00:00 getty
872 tty6 00:00:00 getty
881 ? 00:00:00 xinetd
884 ? 00:00:00 cron
885 ? 00:00:00 atd
886 ? 00:00:00 irqbalance
929 tty1 00:00:00 login
1051 ? 00:00:00 console-kit-dae
1118 ? 00:00:00 polkitd
1128 tty1 00:00:00 bash
1177 tty1 00:00:00 startx
1194 tty1 00:00:00 xinit
1195 tty7 00:00:00 Xorg
1203 tty1 00:00:00 ck-launch-sessi
1235 ? 00:00:00 ssh-agent
1240 tty1 00:00:00 openbox
1252 tty1 00:00:00 firefox
1270 tty1 00:00:00 Xvnc4
1277 tty1 00:00:00 openbox
1322 tty1 00:00:00 firefox
1341 tty1 00:00:00 Xvnc4
1349 tty1 00:00:00 openbox
1394 tty1 00:00:00 firefox
1413 tty1 00:00:00 Xvnc4
1421 tty1 00:00:00 openbox
1466 tty1 00:00:00 firefox
1476 ? 00:00:00 sshd
1486 tty1 00:00:00 Xvnc4
1497 tty1 00:00:00 openbox
1542 tty1 00:00:00 firefox
1561 tty1 00:00:00 Xvnc4
1571 tty1 00:00:00 openbox
1616 tty1 00:00:00 firefox
1629 tty1 00:00:00 Xvnc4
1644 tty1 00:00:00 openbox
1689 tty1 00:00:00 firefox
1707 tty1 00:00:00 Xvnc4
1717 tty1 00:00:00 openbox
1762 tty1 00:00:00 firefox
1775 tty1 00:00:00 Xvnc4
1911 ? 00:00:00 sshd
1912 pts/1 00:00:00 bash
2011 tty1 00:00:00 openbox
2056 tty1 00:00:00 firefox
2073 tty1 00:00:00 Xvnc4
2084 tty1 00:00:00 openbox
2129 tty1 00:00:00 firefox
2144 tty1 00:00:00 Xvnc4
2157 tty1 00:00:00 openbox
2202 tty1 00:00:00 firefox
2220 tty1 00:00:00 Xvnc4
2228 tty1 00:00:00 openbox
2273 tty1 00:00:00 firefox
2290 tty1 00:00:00 Xvnc4
2300 tty1 00:00:00 openbox
2345 tty1 00:00:00 firefox
2356 tty1 00:00:00 Xvnc4
2371 tty1 00:00:00 openbox
2416 tty1 00:00:00 firefox
2431 tty1 00:00:00 Xvnc4
2443 tty1 00:00:00 openbox
2488 tty1 00:00:00 firefox
2498 tty1 00:00:00 Xvnc4
2515 tty1 00:00:00 openbox
2560 tty1 00:00:00 firefox
2579 tty1 00:00:00 Xvnc4
2587 tty1 00:00:00 openbox
2632 tty1 00:00:00 firefox
2650 tty1 00:00:00 Xvnc4
2660 tty1 00:00:00 openbox
2705 tty1 00:00:00 firefox
2718 tty1 00:00:00 Xvnc4
2733 tty1 00:00:00 openbox
2778 tty1 00:00:00 firefox
2796 tty1 00:00:00 Xvnc4
2807 tty1 00:00:00 openbox
2852 tty1 00:00:00 firefox
2863 tty1 00:00:00 Xvnc4
2880 tty1 00:00:00 openbox
2925 tty1 00:00:00 firefox
2943 tty1 00:00:00 Xvnc4
2953 tty1 00:00:00 openbox
2998 tty1 00:00:00 firefox
3016 tty1 00:00:00 Xvnc4
3024 tty1 00:00:00 openbox
3069 tty1 00:00:00 firefox
3087 tty1 00:00:00 Xvnc4
3095 tty1 00:00:00 openbox
3140 tty1 00:00:00 firefox
3159 tty1 00:00:00 Xvnc4
3167 pts/1 00:00:00 sudo
3169 tty1 00:00:00 openbox
3214 tty1 00:00:00 firefox
3229 tty1 00:00:00 Xvnc4
3241 pts/1 00:00:00 su
3248 pts/1 00:00:00 bash
3259 tty1 00:00:00 openbox
3304 tty1 00:00:00 firefox
3319 tty1 00:00:00 Xvnc4
3332 tty1 00:00:00 openbox
3377 tty1 00:00:00 firefox
3390 tty1 00:00:00 Xvnc4
3403 tty1 00:00:00 openbox
3448 tty1 00:00:00 firefox
3467 tty1 00:00:00 Xvnc4
3476 tty1 00:00:00 openbox
3521 tty1 00:00:00 firefox
3536 tty1 00:00:00 Xvnc4
3548 tty1 00:00:00 openbox
3593 tty1 00:00:00 firefox
3608 tty1 00:00:00 Xvnc4
3619 tty1 00:00:00 openbox
3664 tty1 00:00:00 firefox
3679 tty1 00:00:00 Xvnc4
3691 tty1 00:00:00 openbox
3736 tty1 00:00:00 firefox
3749 tty1 00:00:00 Xvnc4
3764 tty1 00:00:00 openbox
3808 tty1 00:00:00 perl
3809 tty1 00:00:00 firefox
3822 tty1 00:00:00 Xvnc4
3836 pts/1 00:00:00 ps
Откуда столько дублирующих процессов? Почему они запускаются с переодичность раз в 1-2 секунды? Как от этого избавиться?
Если закоментировать vnc4server и firefox, то клоны не появляются.