• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to stop active tasks via terminal

    Scheduled Pinned Locked Moved
    General
    7
    7
    760
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      René_Sig
      last edited by

      Since we selected ALL hosts for imaging instead of individual computers or groups, the “active tasks” page is not accessible and we cannot end the tasks. So I need to know what is the command in terminal please. thanks

      killall udp-sender doesn´t work due to ongoing transmissions

      1 Reply Last reply Reply Quote 0
      • N
        Noruas
        last edited by Sebastian Roth

        @René_Sig Hey René,

        we have solved the problem with delete the tasks on the mysql database.

        mysql -u root
        use fog
        delete from tasks where taskState = 0;

        1 Reply Last reply Reply Quote 1
        • S
          Suence
          last edited by

          If you are unable to access the “active tasks” page in your imaging system and need to terminate the tasks from the terminal, you can use the following steps:

          Open the terminal on your system.

          First, try using the “killall” command with the “udp-sender” process again:

          code
          killall udp-sender
          If the “killall udp-sender” command doesn’t work due to ongoing transmissions, you can use the more forceful “kill” command followed by the Process ID (PID) of the udp-sender process. To find the PID, you can use the “pgrep” command along with the process name:

          code
          pgrep udp-sender
          Once you have obtained the PID, use the “kill” command to forcefully terminate the process:

          bash
          code
          kill -9 PID
          Replace “PID” with the actual Process ID you obtained from the “pgrep” command.

          Please note that using the “kill -9” command is a more forceful way to terminate a process and should be used with caution. It forcefully ends the process without giving it a chance to clean up or complete any ongoing tasks, which may lead to potential data loss or other issues.

          Before using the “kill -9” command, ensure that terminating the udp-sender process won’t cause any adverse effects on your imaging system or ongoing tasks. If you are uncertain or facing any critical issues, it’s advisable to seek assistance from your system administrator or technical support.

          1 Reply Last reply Reply Quote 0
          • M
            Michelle23
            last edited by

            kill: Use the kill command followed by the process ID (PID) to stop a task. First, you need to identify the PID of the task you want to stop. You can use the ps command to list the active processes, and then use kill with the appropriate signal.
            To view the active processes, open a terminal and type: ps aux
            Identify the PID of the process you want to stop.
            To stop the process, type: kill PID (replace PID with the actual process ID)

            1 Reply Last reply Reply Quote 0
            • I
              ITCC
              last edited by

              depending on the task if i recall correctly there is a folder in the TFTP or near by that has a file created with the MAC address as the tile name for that job.

              (Just saying 🙂 )

              Correct me if I’m wrong please.

              1 Reply Last reply Reply Quote 0
              • A
                aishagreat024
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • M
                  monsilelig8
                  last edited by george1421

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  185

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project