-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·32 lines (27 loc) · 1.21 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
#**********************************************************
#* CATEGORY APPLICATIONS
#* GROUP MAINFRAME
#* AUTHOR LANCE HAYNIE <[email protected]>
#* DATE 2015-08-28
#* PURPOSE MAINFRAME INIT WITH NETWORKING AND TAPE ROBOT
#**********************************************************
#* MODIFICATIONS
#* 2015-08-28 - LHAYNIE - INITIAL VERSION
#**********************************************************
#**********************************************************
# GLOBAL VARIABLES/INCLUDES/MISC
#**********************************************************
source conf/config.cfg
pid=$$
echo $pid > /tmp/mainframestart.pid
#**********************************************************
# MAIN PROGRAM
#**********************************************************
clear
#Setup networking, it may not exist but if it does it needs to be removed
ip route delete $mainframeip via $tunnelip >/dev/null 2>&1
#Start up Hercules
$hercbin -f $herconfig > $logdir$lparname."$(date +"%Y.%m.%d-%H%M")".log
rm -f /tmp/mainframestart.pid
exit 1