ckrintz / appscale

Automatically exported from code.google.com/p/appscale
0 stars 0 forks source link

Terminate-instances needs to shut down AppScale-related services #196

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With the new packaging and code changes, many services that were previously
shut down are now not. Attached is such a list, generated by 'ps ax'.
Please shut down these services as part of the user running
terminate-instances.

root@localhost:~# ps ax
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 /sbin/init
    2 ?        S<     0:00 [kthreadd]
    3 ?        S<     0:00 [migration/0]
    4 ?        S<     0:00 [ksoftirqd/0]
    5 ?        S<     0:00 [watchdog/0]
    6 ?        S<     0:00 [migration/1]
    7 ?        S<     0:00 [ksoftirqd/1]
    8 ?        S<     0:00 [watchdog/1]
    9 ?        S<     0:02 [events/0]
   10 ?        S<     0:01 [events/1]
   11 ?        S<     0:00 [khelper]
   20 ?        S<     0:00 [xenwatch]
   21 ?        S<     0:00 [xenbus]
   54 ?        S<     0:00 [kintegrityd/0]
   55 ?        S<     0:00 [kintegrityd/1]
   57 ?        S<     0:00 [kblockd/0]
   58 ?        S<     0:00 [kblockd/1]
   64 ?        S<     0:00 [cqueue]
   68 ?        S<     0:00 [kseriod]
  103 ?        S      0:00 [pdflush]
  104 ?        S      0:21 [pdflush]
  105 ?        S<     0:00 [kswapd0]
  151 ?        S<     0:00 [aio/0]
  152 ?        S<     0:00 [aio/1]
  745 ?        S<     0:00 [khvcd]
 1060 ?        S<     0:00 [kstriped]
 1068 ?        S<     0:00 [ksnapd]
 2087 ?        S<     0:06 [kjournald]
 2180 ?        S<s    0:00 /sbin/udevd --daemon
 3621 tty4     Ss+    0:00 /sbin/getty 38400 tty4
 3622 tty5     Ss+    0:00 /sbin/getty 38400 tty5
 3624 tty2     Ss+    0:00 /sbin/getty 38400 tty2
 3625 tty3     Ss+    0:00 /sbin/getty 38400 tty3
 3628 tty6     Ss+    0:00 /sbin/getty 38400 tty6
 3677 ?        Ss     0:03 /sbin/syslogd -u syslog
 3695 ?        S      0:05 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg
 3697 ?        Ss     0:03 /sbin/klogd -P /var/run/klogd/kmsg
 3715 ?        Ss     0:01 /bin/dbus-daemon --system
 3799 ?        S<s    0:00 dhclient3 -e IF_METRIC=100 -pf
/var/run/dhclient.eth0
 3908 ?        Ss     0:07 /usr/sbin/ntpd -p /var/run/ntpd.pid -u 108:111 -g -c
 3912 ?        S<s    0:00 /usr/sbin/sshd
 3924 ?        R<s    0:00 sshd: root@pts/0 
 3958 ?        Ss     0:00 avahi-daemon: running [linux.local]
 3959 ?        Ss     0:00 avahi-daemon: chroot helper
 3964 pts/0    S<s    0:00 -bash
 4008 ?        Ss     0:00 /usr/sbin/cron
 4038 hvc0     Ss     0:00 /bin/login --     
 4039 tty1     Ss+    0:00 /sbin/getty 38400 tty1
 4044 ?        Ssl    0:06 /usr/sbin/console-kit-daemon
 4114 hvc0     S+     0:00 -bash
12716 ?        S<s    0:00 nginx: master process /usr/sbin/nginx
12717 ?        S<     0:00 nginx: worker process
12768 ?        S<s    0:00 /usr/sbin/collectdmon -P /var/run/collectdmon.pid --
12769 ?        S<l    0:00 collectd -C /etc/collectd/collectd.conf -f
12793 pts/0    R<+    0:00 ps ax

The processes that need to be terminated are at least nginx, collectd, and
klogd.

Original issue reported on code.google.com by shattere...@gmail.com on 19 Apr 2010 at 7:41

GoogleCodeExporter commented 9 years ago
Fixed by placing the necessary stop functions at the bottom of terminate.rb and
changing them to use /etc/init.d/whatever instead of service (although likely 
service
would have been fine).

Original comment by shattere...@gmail.com on 20 Apr 2010 at 12:56