1/15/2024 0 Comments Wakeonlan linux![]() ![]() It might not seem like pressing a power button is a big deal, but at that time of day every little thing looms large. My work computer turns itself on at 5:30 a.m., and then all I have to do is drag my coffee and myself to my desk to start work. to have a few hours of overlap with their schedules. You have to specify the user:Īuto-wakeups are very cool most of my SUSE colleagues are in Nuremberg, so I am crawling out of bed at 5 a.m. You may also use /etc/crontab, which is fast and easy, and everything is in one file. See man 5 cron to learn about all the time and date fields. You can create multiple cronjobs for different days and times. This example creates a root cron job to shut down every night at 11:15 p.m. Sleepiesįor computers that don’t need to be on all the time, good old cron will shut them down reliably. Anything that doesn’t need to be on all the time can be configured to turn on, do a job, and then shut down. Or, you can configure your Internet gateway to be on only at certain times. ![]() For example, you can wake up a backup server at a scheduled time, run your backups, and then shut it down until it’s time for the next backup. Save electricity as well as wear on your moving parts, and shut them down when they’re not needed. Some people are very proud of their lengthy uptimes, and now that we have kernel hot-patching that leaves only hardware failures requiring shutdowns. Some computers need to be on all the time, which is fine as long as it’s not about satisfying an uptime compulsion. For convenience and nerd creds, you can configure your Linux computers to wake up and shut down automatically. If your computers don’t need to be on then shut them down. VERBOSE app_macro.c: Spawn extension (macro-hangupcall, s, 6) exited non-zero on 'PJSIP/201-00000020' in macro 'hangupcall' VERBOSE res_agi.c: AGI Script attendedtransfer-rec-restart.php completed, returning 0 VERBOSE res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/attendedtransfer-rec-restart.php VERBOSE pbx.c: Executing :5] AGI("PJSIP/201-00000020", "attendedtransfer-rec-restart.php,") in new stack VERBOSE pbx.c: Executing :4] NoOp("PJSIP/201-00000020", " monior file= ") in new stack VERBOSE pbx_builtins.c: Goto (macro-hangupcall,s,3) VERBOSE pbx.c: Executing :1] Macro("PJSIP/201-00000020", "hangupcall") in new stack VERBOSE pbx.c: Spawn extension (from-internal, 249, 4) exited non-zero on 'PJSIP/201-00000020' VERBOSE pbx.c: Executing :3] NoOp("PJSIP/201-00000020", "Status of TrySystem is: APPERROR") in new stack ![]() VERBOSE pbx.c: Executing :2] TrySystem("PJSIP/201-00000020", "sudo /sbin/ether-wake -i eth0") in new stack NOTICE res_pjsip_exten_state.c: Endpoint '201' state subscription failed: Extension '249' does not exist in context 'from-internal' or has no associated hint ![]() VERBOSE netsock2.c: Using SIP RTP Audio CoS mark 5 VERBOSE netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field. VERBOSE netsock2.c: Using SIP RTP Audio TOS bits 184 VERBOSE pbx_variables.c: Setting global variable 'SIPDOMAIN' to '192.168.1.10' In the post is advised to add two lines of code to the " sudoers file ( visudo )", but I’m honestly not sure where to find that. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |