@@ -32,11 +32,11 @@ let pmUtils;
3232let cmdArgs ;
3333let skipExitListeners = false ;
3434
35- const UPGRADE_COMPLETE_MSG = 'Upgrade complete. Starting HarperDB .' ;
36- const UPGRADE_ERR = 'Got an error while trying to upgrade your HarperDB instance. Exiting HarperDB .' ;
37- const HDB_NOT_FOUND_MSG = 'HarperDB not found, starting install process.' ;
38- const INSTALL_ERR = 'There was an error during install, check install_log.log for more details. Exiting.' ;
39- const HDB_STARTED = 'HarperDB successfully started.' ;
35+ const UPGRADE_COMPLETE_MSG = 'Upgrade complete. Starting Harper .' ;
36+ const UPGRADE_ERR = 'Got an error while trying to upgrade your Harper instance. Exiting Harper .' ;
37+ const HDB_NOT_FOUND_MSG = 'Harper not found, starting install process.' ;
38+ const INSTALL_ERR = 'There was an error during install, check install_log.log for more details. Exiting.' ;
39+ const HDB_STARTED = 'Harper successfully started.' ;
4040
4141function addUnhandleRejectionListener ( ) {
4242 process . on ( 'unhandledRejection' , ( reason , promise ) => {
@@ -73,7 +73,7 @@ function addExitListeners() {
7373 */
7474async function initialize ( calledByInstall = false , calledByMain = false ) {
7575 // Check to see if HDB is installed, if it isn't we call install.
76- console . log ( chalk . magenta ( 'Starting HarperDB ...' ) ) ;
76+ console . log ( chalk . magenta ( 'Starting Harper ...' ) ) ;
7777
7878 addUnhandleRejectionListener ( ) ;
7979
@@ -108,24 +108,24 @@ async function initialize(calledByInstall = false, calledByMain = false) {
108108 }
109109 }
110110
111- // Check to see if HarperDB is already running by checking for a pid file
111+ // Check to see if Harper is already running by checking for a pid file
112112 // If found confirm it matches a currently running processes
113113 let hdbPid = getHdbPid ( ) ;
114114 if ( hdbPid ) {
115- hdbLogger . debug ( 'Error: HarperDB is already running' ) ;
116- console . error ( `Error: HarperDB is already running (pid: ${ hdbPid } )` ) ;
115+ hdbLogger . debug ( 'Error: Harper is already running' ) ;
116+ console . error ( `Error: Harper is already running (pid: ${ hdbPid } )` ) ;
117117 process . exit ( 4 ) ;
118118 }
119119
120120 addExitListeners ( ) ;
121121
122122 if ( calledByMain ) {
123- // Write HarperDB PID to file for tracking purposes
123+ // Write Harper PID to file for tracking purposes
124124 await fs . writeFile ( path . join ( env . get ( hdbTerms . CONFIG_PARAMS . ROOTPATH ) , hdbTerms . HDB_PID_FILE ) , `${ process . pid } ` ) ;
125125 }
126- hdbLogger . info ( 'HarperDB PID' , process . pid ) ;
126+ hdbLogger . info ( 'Harper PID' , process . pid ) ;
127127
128- // Check to see if an upgrade is needed based on existing hdbInfo data. If so, we need to force the user to upgrade
128+ // Check to see if an upgrade is needed based on existing hdbInfo data. If so, we need to force the user to upgrade
129129 // before the server can be started.
130130 let upgradeVers ;
131131 try {
@@ -138,7 +138,7 @@ async function initialize(calledByInstall = false, calledByMain = false) {
138138 } catch ( err ) {
139139 if ( upgradeVers ) {
140140 console . error (
141- `Got an error while trying to upgrade your HarperDB instance to version ${ upgradeVers } . Exiting HarperDB .` ,
141+ `Got an error while trying to upgrade your Harper instance to version ${ upgradeVers } . Exiting Harper .` ,
142142 err
143143 ) ;
144144 hdbLogger . error ( err ) ;
@@ -188,12 +188,12 @@ async function main(calledByInstall = false) {
188188function started ( ) {
189189 // Console log Harper dog logo
190190 hdbLogger . suppressLogging ( ( ) => {
191- console . log ( chalk . magenta ( `HarperDB ${ packageJson . version } successfully started` ) ) ;
191+ console . log ( chalk . magenta ( `Harper ${ packageJson . version } successfully started` ) ) ;
192192 } ) ;
193193 hdbLogger . notify ( HDB_STARTED ) ;
194194}
195195/**
196- * Launches a separate process for HarperDB and then exits. This is an unusual practice and is anathema
196+ * Launches a separate process for Harper and then exits. This is an unusual practice and is anathema
197197 * to the way processes are typically handled, both in terminal and for services (systemd), but this functionality
198198 * is retained for legacy purposes.
199199 * @returns {Promise<void> } // ha ha, it doesn't!
@@ -297,7 +297,7 @@ function startupLog(portResolutions) {
297297 env . get ( CONFIG_PARAMS . REPLICATION_SECUREPORT ) ?? env . get ( CONFIG_PARAMS . OPERATIONSAPI_NETWORK_SECUREPORT ) ;
298298
299299 repLog += replicationPort ? `WS: ${ replicationPort } , ` : '' ;
300- repLog += replicationSecurePort ? `WSS: ${ replicationSecurePort } ` : '' ;
300+ repLog += replicationSecurePort ? `WSS: ${ replicationSecurePort } ` : '' ;
301301 logMsg += `${ repLog . slice ( 0 , - 2 ) } \n` ;
302302 }
303303
0 commit comments