Fix a couple more upstart issues
authorJamie Cameron <jcameron@webmin.com>
Fri, 6 May 2011 17:22:29 +0000 (10:22 -0700)
committerJamie Cameron <jcameron@webmin.com>
Fri, 6 May 2011 17:22:29 +0000 (10:22 -0700)
http://www.virtualmin.com/node/17831

init/init-lib.pl

index 9f6ed96..41f04d7 100755 (executable)
@@ -625,6 +625,7 @@ if ($init_mode eq "upstart" && (!-r "$config{'init_dir'}/$_[0]" ||
                &create_upstart_service($_[0], $_[1], $_[2], $_[5]->{'fork'});
                &system_logged("insserv ".quotemeta($_[0])." >/dev/null 2>&1");
                }
+       return;
        }
 if ($init_mode eq "init" || $init_mode eq "local" || $init_mode eq "upstart") {
        # In these modes, we create a script to run
@@ -633,7 +634,7 @@ if ($init_mode eq "init" || $init_mode eq "local" || $init_mode eq "upstart") {
                $daemon++;
                }
        local $fn;
-       if ($init_mode eq "init") {
+       if ($init_mode eq "init" || $init_mode eq "upstart") {
                # Normal init.d system
                $fn = &action_filename($_[0]);
                }