~vorlon/ubuntu/raring/upstart/lp.1199778

« back to all changes in this revision

Viewing changes to init/control.c

  • Committer: Scott James Remnant
  • Date: 2006-08-30 23:49:36 UTC
  • Revision ID: scott@netsplit.com-20060830234936-3554359b8b1661e6
* init/control.c (control_handle): Place a message in the syslog
before halting, powering off or rebooting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
528
528
                control_subscribe (pid, NOTIFY_EVENTS, FALSE);
529
529
                break;
530
530
        case UPSTART_HALT:
531
 
                nih_info (_("Control request to halt system"));
 
531
                nih_warn (_("System going down for system halt"));
532
532
                event_queue_edge ("shutdown");
533
533
                job_set_idle_event ("halt");
534
534
                break;
535
535
        case UPSTART_POWEROFF:
536
 
                nih_info (_("Control request to power off system"));
 
536
                nih_warn (_("System going down for power off"));
537
537
                event_queue_edge ("shutdown");
538
538
                job_set_idle_event ("poweroff");
539
539
                break;
540
540
        case UPSTART_REBOOT:
541
 
                nih_info (_("Control request to reboto system"));
 
541
                nih_warn (_("System going down for reboot"));
542
542
                event_queue_edge ("shutdown");
543
543
                job_set_idle_event ("reboot");
544
544
                break;