1 &  ***********************************************************
  2 &  *                                                         *
  3 &  * Copyright, (C) Honeywell Bull Inc., 1987                *
  4 &  *                                                         *
  5 &  * Copyright, (C) Honeywell Information Systems Inc., 1984 *
  6 &  *                                                         *
  7 &  * Copyright (c) 1972 by Massachusetts Institute of        *
  8 &  * Technology and Honeywell Information Systems, Inc.      *
  9 &  *                                                         *
 10 &  ***********************************************************
 11 &
 12 &
 13 & SYSTEM_START_UP.EC - Installation-dependent commands at system startup time.
 14 &
 15 & This exec_com is invoked by system_control_ three times:
 16 & 1. Before answering service startup, in response to "startup" or "multics" command.
 17 & 2. After answering service startup, in response to "startup" or "go" command.
 18 & 3. After channel attachment, in response to "startup" or "go" command.
 19 &
 20 & a ten-second pause is made between step 2 and channel attachment to allow the
 21 & message coordinator to get output from "login" commands and such out.
 22 &
 23 & Modified 1985-01-02, BIM: new system control.
 24 & Modified 1985-02-04, Steve Herbst: Added comment showing command line to
 25 &         log in a Data_Management daemon.
 26 &
 27 &
 28 &  HISTORY COMMENTS:
 29 &   1) change(87-10-01,Beattie), approve(87-10-01,MECR0010),
 30 &      audit(87-10-01,Parisek), install(87-10-02,MR12.1-1123):
 31 &      Insert reconfigure command line and exec_com command line to start
 32 &      scavenging into an "on" command line to prevent an abort when
 33 &      they signal command_error.
 34 &                                                       END HISTORY COMMENTS
 35 &
 36 &
 37 & ----------------------------------------------------------------------------
 38 &
 39 &  To log in a Data Management daemon, issue the command line:
 40 &
 41 &           login Data_Management Daemon <message_coordinator_channel_id>
 42 &
 43 & ----------------------------------------------------------------------------
 44 &
 45 &command_line off
 46 &goto &1
 47 &
 48 &label part1
 49 &  must create and set acls for ".message" segments used by non-SysDaemon daemons:
 50 &
 51 &if [exists segment mc.message] &then &else create mc.message; set_acl mc.message rw *.Daemon.*
 52 &if [exists segment reader.message] &then &else create reader.message; set_acl reader.message rw *.Daemon.*
 53 &if [exists segment vinc.message] &then &else create vinc.message; set_acl vinc.message rw *.Daemon.*
 54 &if [exists segment vcons.message] &then &else create vcons.message; set_acl vcons.message rw *.Daemon.*
 55 &if [exists segment vcomp.message] &then &else create vcomp.message; set_acl vcomp.message rw *.Daemon.*
 56 &quit
 57 &
 58 &label part2
 59 &
 60 &         a.h000 is an example of an installation-dependent channel number
 61 &         of a terminal in an input/output area remote from the main computer
 62 &         room.  The lines referring to a.h000 and ioc2d are commented out,
 63 &         and are present to show how a remote i/o terminal can be set up
 64 &         using the message coordinator
 65 &
 66 &         EXAMPLE OF REMOTE I/O TERMINAL
 67 & sc_command accept a.h000
 68 sc_command define alarm tty otw_
 69 sc_command define scc tty otw_
 70 sc_command define asc tty otw_
 71 sc_command define ioc tty otw_
 72 sc_command define bkc tty otw_
 73 &         EXAMPLE OF REMOTE I/O TERMINAL
 74 & sc_command define ioc2d tty a.h000
 75 &
 76 sc_command define iolog log iolog
 77 sc_command reroute as severity1 default_vcons asc
 78 sc_command reroute as severity2 default_vcons *asc
 79 sc_command reroute as severity3 default_vcons *asc
 80 sc_command route as severity3 *alarm
 81 sc_command route (io1 io2 cord prta prtb) user_i/o ioc
 82 &         EXAMPLE OF REMOTE I/O TERMINAL
 83 & sc_command route (io1 prtb cord) user_i/o ioc2d
 84 sc_command route (io1 io2 cord prta prtb) error_i/o *ioc
 85 &         EXAMPLE OF REMOTE I/O TERMINAL
 86 & sc_command route (io1 prtb cord) error_i/o *ioc2d
 87 sc_command route (prta prtb reader io1) log_i/o iolog
 88 sc_command route (prta prtb reader io1) log_i/o ioc
 89 &         EXAMPLE OF REMOTE I/O TERMINAL
 90 & sc_command route (prtb io1) log_i/o ioc2d
 91 sc_command route (bk cd1 cd2 rt vinc vcons vcomp) user_i/o bkc
 92 sc_command route (bk cd1 cd2 rt vinc vcons vcomp) error_i/o *bkc
 93 &
 94 & CHANGE and uncomment the following line to name the volumes that should
 95 &   be used for process directories.
 96 & sc_command set_pdir_volumes public
 97 sc_command login IO SysDaemon cord
 98 sc_command login Backup SysDaemon bk
 99 sc_command login IO SysDaemon prta
100 sc_command login Utility SysDaemon ut
101 sc_command login Volume_Dumper Daemon vinc
102 &
103 & if system rebooted itself after a crash, while unattended (flagbox 5 is "unattended")
104 &if [and [get_flagbox 5] [get_flagbox rebooted]] &then &else &goto not_unattended_reboot
105 & delete the tape drives
106 on command_error "" -brief -restart reconfigure delete device tape_(01 02 03 04 05 06 07 08)
107 & turn off automatic rebooting, to avoid a crash loop
108 set_flagbox auto_reboot false
109 &label not_unattended_reboot
110 &
111 &quit
112 &
113 &label part3
114 & set_timax 1
115 initialize_peek_limits >system_library_1>ring_zero_meter_limits_ASCII_
116 set_flagbox booting false
117 hpsa >system_library_1>system_privilege_ re *.Daemon.*
118 hpsa >system_library_1>rcp_priv_ re *.HFED.*
119 hpsa >system_library_1>phcs_ re *.HFED.*
120 hpsa >system_library_1>tandd_ re *.HFED.*
121 set_acl >sl1>syserr_log.** [list_iacl_seg >sc1>syserr_log]
122 save_history_registers off -priv
123 & The following will log in a daemon to scavenge all mounted physical
124 & volumes with inconsistencies.
125 on command_error "" -brief -restart ec admin scav -all -auto -nopt
126 &quit
127 &
128 &label &1
129 &print ERROR &1
130 & end