1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Some Services will be Restarted . . .

Discussion in 'Tomato Firmware' started by Planiwa, Jun 18, 2013.

  1. Planiwa

    Planiwa LI Guru Member

    Some Services will be Restarted . . .

    Why not say which services, and give the user the option of backing out?

    But first, a small (but related) question:
    What is the difference between Boot and "sysup" aka "INIT"?

    /proc/uptime vs. /var/notice/sysup



    Now then, suppose I want to change the name of the router from ROUTER to Router.
    What side-effects will that incur?
    Take some time to think. Think as long as you want. . . .



    So, what have you come up with?
    A line in /etc/hosts and another couple of lines in /etc/dnsmasq/hosts/hosts
    No big deal.

    Here is what actually happens:

    Code:
    Jun 17 14:45:06 ROUTER user.notice root: SHUTDOWN SCRIPT
    Jun 17 14:45:06 ROUTER daemon.notice pppd[16809]: Modem hangup
    ...
    Jun 17 14:45:06 ROUTER daemon.notice pppd[16809]: Connection terminated.
    Jun 17 14:45:06 ROUTER daemon.warn dnsmasq[16891]: no servers found in /etc/resolv.dnsmasq, will retry
    ...
    Jun 17 14:45:07 ROUTER user.notice root: FIREWALL SCRIPT
    Jun 17 14:45:07 ROUTER daemon.info pppd[16809]: Terminating on signal 15
    Jun 17 14:45:07 ROUTER daemon.info pppd[16809]: Exit.
    ...
    Jun 17 14:45:07 ROUTER daemon.notice pppd[17429]: pppd 2.4.5 started by root, uid 0
    ...
    Jun 17 14:45:07 ROUTER daemon.notice pppd[17429]: PAP authentication succeeded
    ...
    Jun 17 14:45:07 ROUTER user.debug ip-up[17432]: 182: pptp peerdns disabled
    Jun 17 14:45:08 ROUTER user.info redial[17433]: Started. Time: 10
    Jun 17 14:45:08 ROUTER user.debug init[1]: rstats stopped.
    Jun 17 14:45:09 ROUTER user.debug init[1]: cstats stopped.
    ...
    Jun 17 14:45:09 ROUTER daemon.info dnsmasq[16891]: exiting on receipt of SIGTERM
    Jun 17 14:45:09 ROUTER user.debug init[1]: 182: pptp peerdns disabled
    Jun 17 14:45:09 ROUTER daemon.info dnsmasq[17488]: started, version 2.67cs7 cachesize 1500
    ...
    Jun 17 14:45:10 ROUTER daemon.warn pppd[17429]: Child process /tmp/ppp/ip-up (pid 17432) terminated with signal 15
    Jun 17 14:45:10 ROUTER daemon.info pppd[17429]: Terminating on signal 15
    Jun 17 14:45:10 ROUTER daemon.info pppd[17429]: Connect time 0.1 minutes.
    Jun 17 14:45:10 ROUTER daemon.info pppd[17429]: Sent 0 bytes, received 0 bytes.
    Jun 17 14:45:10 ROUTER daemon.notice pppd[17429]: Connection terminated.
    Jun 17 14:45:10 ROUTER daemon.info pppd[17429]: Exit.
    Jun 17 14:45:10 ROUTER daemon.warn dnsmasq[17488]: no servers found in /etc/resolv.dnsmasq, will retry
    ...
    Jun 17 14:45:11 ROUTER user.notice kernel: klogd: exiting
    Jun 17 14:45:11 ROUTER syslog.info syslogd exiting
    Jun 17 14:45:11 Router syslog.info syslogd started: BusyBox v1.20.2
    Jun 17 14:45:11 Router user.notice kernel: klogd started: BusyBox v1.20.2 (2013-06-06 16:23:10 CEST)
    Jun 17 14:45:11 Router user.notice root: INIT SCRIPT
    ...
    Jun 17 14:45:14 Router user.notice root: FIREWALL SCRIPT
    Jun 17 14:45:14 Router daemon.info pppd[17702]: Plugin rp-pppoe.so loaded.
    Jun 17 14:45:14 Router daemon.info pppd[17702]: RP-PPPoE plugin version 3.11 compiled against pppd 2.4.5
    Jun 17 14:45:14 Router user.info redial[17704]: Started. Time: 10
    Jun 17 14:45:14 Router daemon.notice pppd[17703]: pppd 2.4.5 started by root, uid 0
    Jun 17 14:45:14 Router daemon.info dnsmasq[17488]: exiting on receipt of SIGTERM
    Jun 17 14:45:14 Router daemon.info dnsmasq[17715]: started, version 2.67cs7 cachesize 1500
    ...
    Jun 17 14:45:14 Router daemon.warn dnsmasq[17715]: no servers found in /etc/resolv.dnsmasq, will retry
    ...
    Jun 17 14:45:14 Router user.debug init[1]: starting rstats.
    Jun 17 14:45:14 Router daemon.info pppd[17703]: PPP session is 1 (0x1)
    ...
    Jun 17 14:45:14 Router user.debug init[1]: starting cstats.
    Jun 17 14:45:14 Router daemon.notice pppd[17703]: PAP authentication succeeded
    ...
    Jun 17 14:45:14 Router user.debug ip-up[17754]: 182: pptp peerdns disabled
    Jun 17 14:45:15 Router user.info init[1]: Asus RT-N66U: Tomato 1.28.9013 MIPSR2-RAF-V1.1t K26 USB VLAN-NGINX-64K
    Jun 17 14:45:15 Router user.debug init[1]: 182: pptp peerdns disabled
    Jun 17 14:45:15 Router daemon.info dnsmasq[17715]: exiting on receipt of SIGTERM
    Jun 17 14:45:15 Router daemon.info dnsmasq[17763]: started, version 2.67cs7 cachesize 1500
    ...
    Jun 17 14:45:15 Router user.debug init[1]: 182: pptp peerdns disabled
    Jun 17 14:45:15 Router daemon.info dnsmasq[17763]: exiting on receipt of SIGTERM
    Jun 17 14:45:15 Router daemon.info dnsmasq[17778]: started, version 2.67cs7 cachesize 1500
    ...
    Jun 17 14:45:16 Router user.notice root: FIREWALL SCRIPT
    Jun 17 14:45:18 Router user.notice root: FIREWALL SCRIPT
    Jun 17 14:45:19 Router user.notice root: FIREWALL SCRIPT
    Jun 17 14:45:19 Router user.notice root: WANUP SCRIPT
    
     
  2. Marcel Tunks

    Marcel Tunks Networkin' Nut Member

    You can avoid restarting a service when you change settings through the debug menu, by avoiding committing settings to NVRAM. If you prefer to choose page by page whether settings should be temporarily saved or committed, then you can use dd-WRT. ;)

    One of the advantages of Tomato is that most setting changes restart the relevant service without a reboot.

    Is it the choice of words that troubles you?
     
  3. Planiwa

    Planiwa LI Guru Member

    (Nobody expects the Spanish Inquisition, and as Einstein observed, there is something more infinite than the universe.)

    In this case, what a reasonable person might have expected to be an insignificant change, had the following drastic consequences:

    1. The SHUTDOWN Script was executed!
    2. The Internet connection was terminated!
    3. The Internet connection was restarted.
    4. The Internet connection was terminated AGAIN!
    5. The Internet connection was restarted AGAIN!
    6. The INIT Script was executed!
    7. The FIREWALL-UP Script was executed FIVE TIMES!

    “A stupid man's report of what a clever man says can never be accurate, because he unconsciously translates what he hears into something he can understand.”
    ― Bertrand Russell, A History of Western Philosophy
     
  4. Marcel Tunks

    Marcel Tunks Networkin' Nut Member

    I was under the impression that changing the router's hostname required a reboot. Reboot, as opposed to just pulling the power cable, runs shutdown scripts and all the startup scripts. For points 4 and 7, I'm at a loss.
     
  5. jerrm

    jerrm Network Guru Member

    Your changed a page where the other settings have WAN, LAN, and firewall implications. Granted maybe a little extra sanity checking could have been done for the one setting you changed, but going through that overall sequence is about what I would have expected for a submit on that page.

    Tomato has always seemed to be a little too agressive on restarting the firewall, generally gets called more than once during initial boot as well. I assume it has proven necessary to cover various scenarios. Like so many other things, it could probably be tweaked and improved, but it works and there are other priorities.
     
  6. Marcel Tunks

    Marcel Tunks Networkin' Nut Member

    @Planiwa:
    BTW, the tone of your quotes is not appreciated. It's generally foolish to make assumptions about a person from a brief encounter. Making inferences about the intelligence of a poster in a forum is idiotic.
     
  7. Planiwa

    Planiwa LI Guru Member

    More data -- BW-Limiter, saved after no change.

    Is it reasonable to expect to lose the WAN connection when making a BW-Limit change?

    Code:
    ...
    Jun 18 11:27:54 ROUTER daemon.notice pppd[20866]: Connection terminated.
    Jun 18 11:27:55 ROUTER user.notice root: FIREWALL SCRIPT
    Jun 18 11:27:55 ROUTER daemon.info pppd[20866]: Terminating on signal 15
    ...
    Jun 18 11:27:55 ROUTER daemon.notice pppd[31261]: pppd 2.4.5 started by root, uid 0
    ...
    Jun 18 11:27:56 ROUTER daemon.notice pppd[31261]: PAP authentication succeeded
    ...
    Jun 18 11:27:57 ROUTER user.notice root: FIREWALL SCRIPT
    Jun 18 11:27:57 ROUTER daemon.info dnsmasq[20970]: exiting on receipt of SIGTERM
    Jun 18 11:27:57 ROUTER daemon.info dnsmasq[31367]: started, version 2.61 cachesize 1500
    ...
    Jun 18 11:27:58 ROUTER user.notice root: FIREWALL SCRIPT
    Jun 18 11:28:00 ROUTER user.notice root: FIREWALL SCRIPT
    Jun 18 11:28:01 ROUTER user.notice root: FIREWALL SCRIPT
    Jun 18 11:28:02 ROUTER user.notice root: WAN-UP SCRIPT
    
     
  8. Kevin Darbyshire-Bryant

    Kevin Darbyshire-Bryant Networkin' Nut Member

    Yes it's very reasonable. Next.
     

Share This Page