]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/Daemon.pm
When starting in debug mode, starts the daemon without going through systemctl
[pve-common.git] / src / PVE / Daemon.pm
index f81e589e3aca0433c25bf7a3e567fe9255463277..9d72c327446a9c1fb5b710ce0cdf207c3a765128 100644 (file)
@@ -669,7 +669,7 @@ sub register_start_command {
        code => sub {
            my ($param) = @_;
 
-            if (&$init_ppid()) {
+            if (&$init_ppid() || $param->{debug}) {
                 $self->start($param->{debug});
             } else {
                 PVE::Tools::run_command(['systemctl', 'start', $self->{name}]);