Announcement

Collapse
No announcement yet.

New Mono Version

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #61
    You can do it directly from a HomeSeer event instead of using cron.

    Click image for larger version

Name:	Screenshot from 2019-08-15 09-25-48.png
Views:	66
Size:	49.8 KB
ID:	1321096

    Comment


    • #62
      That's not going to let HomeSeer gracefully shutdown though is it?

      Comment


      • #63
        Yes the command will bring the system down safely. From the shutdown man page.
        Name

        shutdown - bring the system down Synopsis

        shutdown [OPTION]... TIME [MESSAGE] Description

        shutdown arranges for the system to be brought down in a safe way. All logged-in users are notified that the system is going down and, within the last five minutes of TIME, new logins are prevented.

        TIME may have different formats, the most common is simply the word 'now' which will bring the system down immediately. Other valid formats are +m, where m is the number of minutes to wait until shutting down and hh:mm which specifies the time on the 24hr clock.

        Once TIME has elapsed, shutdown sends a request to the init(8) daemon to bring the system down into the appropriate runlevel.

        This is performed by emitting the runlevel(7) event, which includes the new runlevel in the RUNLEVEL environment variable as well as the previous runlevel (obtained from the environment or from /var/run/utmp) in the PREVLEVEL variable. An additional INIT_HALT variable may be set, this will contain the value HALT when bringing the system down for halt and POWEROFF when bringing the system down for power off.

        Comment


        • #64
          Depending if a service is set. This event only wont shutdown homeseer properly

          Comment


          • #65
            Agreed - but it's what has been recommended in the forum in multiple places. I assumed and you know what that does.

            Comment


            • #66
              '/sbin/reboot' does same thing as '/sbin/shutdown -r now' with less typing

              [similarly, /sbin/halt and /sbin/poweroff do the same thing as the -H and -P shutdown(8) options]

              It should be noted that HomeSeer's SEL and ZeeS2 products are not set up to perform a 'safe' shutdown when those systems are brought down this way.

              There are two 'service' implementations methods I'm aware of that will provide a safe shutdown; neither is provided nor endorsed by HomeSeer.

              Comment

              Working...
              X