AICCU runs with multiple Processes
Shadow Hawkins on Saturday, 13 April 2013 03:29:26
Dear all,
When I start AICCU once, it has multiple processes. (I make sure that it has exited and no PID exists before I start.) IPv6 connection works. However, I just feel weird. Is this phenomenon normal?
By using 'PS' command, it can see that it generate four PID. And if executing 'root@OpenWrt:/etc# /etc/init.d/aiccu stop', all these PIDs disappear.
It happens in both test and normal service start mode:
aiccu test
1233 root 1380 S /usr/sbin/ntpd -n -p 0.openwrt.pool.ntp.org -p 1.open
1239 root 1204 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1240 root 1392 S -ash
1772 root 1044 S aiccu test
1777 root 1044 S aiccu test
1778 root 1044 S aiccu test
1795 root 1044 S aiccu test
1917 root 1372 S sh -c traceroute 119.17.194.232 2>&1
1918 root 1376 S traceroute 119.17.194.232
1940 root 1204 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1941 root 1384 S -ash
1946 root 1376 R ps
/etc/init.d/aiccu start
1941 root 1384 S -ash
1990 root 1048 S aiccu start /tmp/run/aiccu-cfg029220.conf
1991 root 780 S /sbin/hotplug2 --override --persistent --set-worker /
1993 root 1048 S aiccu start /tmp/run/aiccu-cfg029220.conf
1994 root 1048 S aiccu start /tmp/run/aiccu-cfg029220.conf
2014 root 1048 S aiccu start /tmp/run/aiccu-cfg029220.conf
2130 root 1376 R ps
And here is my /etc/aiccu.conf file content:
root@OpenWrt:/etc# cat aiccu.conf
username YLB2-SIXXS
password *********
server tic.sixxs.net
protocol tic
ipv6_interface sixxs0
tunnel_id T119506
behindnat true
daemonize true
pidfile /var/run/aiccu.pid
When executing aiccu start, the syslog seems to be normal.
root@OpenWrt:/etc# logread|grep local7|tail
Apr 12 14:28:04 OpenWrt local7.info syslog: [AYIYA-tun->tundev] : (Socket to TUN) started
Apr 12 14:39:12 OpenWrt local7.info syslog: Succesfully retrieved tunnel information for T119506
Apr 12 14:39:12 OpenWrt local7.info syslog: AICCU running as PID 1990
Apr 12 14:39:12 OpenWrt local7.info syslog: [AYIYA-start] : Anything in Anything (draft-02)
Apr 12 14:39:12 OpenWrt local7.info syslog: [AYIYA-tun->tundev] : (Socket to TUN) started
Apr 12 14:47:17 OpenWrt local7.err syslog: Already running instance HUP'ed, exiting
Apr 12 14:55:21 OpenWrt local7.info syslog: Succesfully retrieved tunnel information for T119506
Apr 12 14:55:21 OpenWrt local7.info syslog: AICCU running as PID 2170
Apr 12 14:55:21 OpenWrt local7.info syslog: [AYIYA-start] : Anything in Anything (draft-02)
Apr 12 14:55:21 OpenWrt local7.info syslog: [AYIYA-tun->tundev] : (Socket to TUN) started
But PS gives:
root@OpenWrt:/tmp/run# ps |tail -8
1940 root 1204 S /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1941 root 1388 S -ash
2170 root 1048 S aiccu start
2173 root 1048 S aiccu start
2174 root 1048 S aiccu start
2189 root 1048 S aiccu start
2318 root 1376 R ps
2319 root 1376 S tail -8
Could any one explain this?
Thanks!
Yan Li
AICCU runs with multiple Processes
Jeroen Massar on Friday, 10 May 2013 11:06:11
Those are very likely not multiple processes, but multiple threads. Some libc's use processes (at least the process internals) instead of actual having true lightweight threads.
When executing aiccu start, the syslog seems to be normal.
What is NOT normal is that you are starting it every 20 seconds....
Posting is only allowed when you are logged in. |