Fix typo in function name (workding -> working)
authorDavin McCall <davmac@davmac.org>
Sat, 22 Jun 2019 03:03:51 +0000 (04:03 +0100)
committerDavin McCall <davmac@davmac.org>
Sat, 22 Jun 2019 03:03:51 +0000 (04:03 +0100)
src/includes/proc-service.h
src/load-service.cc

index ad48182ce6f905f37f452ee7ee78b7d1bf53d80c..fe36ea0fec76be68e6a7e9b457b04505b55f75ba 100644 (file)
@@ -288,7 +288,7 @@ class base_process_service : public service_record
     }
 
     // Set the working directory
-    void set_workding_dir(const string &working_dir_p)
+    void set_working_dir(const string &working_dir_p)
     {
         working_dir = working_dir_p;
     }
index 1a6d7c73795de1c63352c5592414c0ab0cd9578e..25e2b4a192038051347fe74679098eac8ac5304b 100644 (file)
@@ -746,7 +746,7 @@ service_record * dirload_service_set::load_service(const char * name)
                     do_env_subst(command, command_offsets, do_sub_vars);
                     auto rvalps = new process_service(this, string(name), std::move(command),
                             command_offsets, depends);
-                    rvalps->set_workding_dir(working_dir);
+                    rvalps->set_working_dir(working_dir);
                     rvalps->set_rlimits(std::move(rlimits));
                     rvalps->set_restart_interval(restart_interval, max_restarts);
                     rvalps->set_restart_delay(restart_delay);
@@ -766,7 +766,7 @@ service_record * dirload_service_set::load_service(const char * name)
                     do_env_subst(command, command_offsets, do_sub_vars);
                     auto rvalps = new bgproc_service(this, string(name), std::move(command),
                             command_offsets, depends);
-                    rvalps->set_workding_dir(working_dir);
+                    rvalps->set_working_dir(working_dir);
                     rvalps->set_rlimits(std::move(rlimits));
                     rvalps->set_pid_file(std::move(pid_file));
                     rvalps->set_restart_interval(restart_interval, max_restarts);
@@ -783,7 +783,7 @@ service_record * dirload_service_set::load_service(const char * name)
                     auto rvalps = new scripted_service(this, string(name), std::move(command),
                             command_offsets, depends);
                     rvalps->set_stop_command(stop_command, stop_command_offsets);
-                    rvalps->set_workding_dir(working_dir);
+                    rvalps->set_working_dir(working_dir);
                     rvalps->set_rlimits(std::move(rlimits));
                     rvalps->set_stop_timeout(stop_timeout);
                     rvalps->set_start_timeout(start_timeout);