Forum Discussion

baekbu07_154640's avatar
baekbu07_154640
Icon for Nimbostratus rankNimbostratus
Sep 04, 2014

Do you know difference between "start" and "restart"?

I entered the command such as "bigstart status".

 

Screens is displayed "httpd_apm run (pid 5425) 1 hours, 3 starts, 2 restarts".

 

Do you know difference between "start" and "restart"?

 

When can I see them(start, restart)?

 

  • i guess restart means it is restarted by runsv.

    e.g.

    [root@ve11a:Active:In Sync] config  tmsh show sys service snmpd
    snmpd        run (pid 22409) 7 days, 1 start
    
    [root@ve11a:Active:In Sync] config  tmsh restart sys service snmpd
    [root@ve11a:Active:In Sync] config  tmsh show sys service snmpd
    snmpd        run (pid 8075) 3 seconds, 2 starts
    
    [root@ve11a:Active:In Sync] config  ps -elf | grep /usr/sbin/snmpd | grep -v grep
    4 S root      8075  5951  3  80   0 -  9918 -      23:04 ?          0:00 /usr/sbin/snmpd -f -c /config/snmp/snmpd.conf -I-ifTable ifXTable ipAddressTable -Lsd -LF 6 /var/log/snmpd.log -p /var/run/snmpd.pid
    
    [root@ve11a:Active:In Sync] config  kill -9 8075
    
    [root@ve11a:Active:In Sync] config  tmsh show sys service snmpd
    snmpd        run (pid 8213) 5 seconds, 2 starts, 2 restarts
    
  • i guess restart means it is restarted by runsv.

    e.g.

    [root@ve11a:Active:In Sync] config  tmsh show sys service snmpd
    snmpd        run (pid 22409) 7 days, 1 start
    
    [root@ve11a:Active:In Sync] config  tmsh restart sys service snmpd
    [root@ve11a:Active:In Sync] config  tmsh show sys service snmpd
    snmpd        run (pid 8075) 3 seconds, 2 starts
    
    [root@ve11a:Active:In Sync] config  ps -elf | grep /usr/sbin/snmpd | grep -v grep
    4 S root      8075  5951  3  80   0 -  9918 -      23:04 ?          0:00 /usr/sbin/snmpd -f -c /config/snmp/snmpd.conf -I-ifTable ifXTable ipAddressTable -Lsd -LF 6 /var/log/snmpd.log -p /var/run/snmpd.pid
    
    [root@ve11a:Active:In Sync] config  kill -9 8075
    
    [root@ve11a:Active:In Sync] config  tmsh show sys service snmpd
    snmpd        run (pid 8213) 5 seconds, 2 starts, 2 restarts