Skip to main content
Version: v3.0.x LTS

Configuring daemon mode on z/Linux operating systems

Configuring daemon mode on z/Linux operating systems

Currently, Zowe CLI does not offer a prebuilt daemon that can run on z/Linux operating systems. However, developers can build the daemon binary from source.

Required roles: Security administrator, DevOps architect

To install and build the daemon binary on z/Linux systems:

  1. Ensure that the z/Linux system can communicate using the Internet.

  2. Install Zowe CLI on the z/Linux system.

  3. Install the following Linux packages on the z/Linux system:

    • make

    • gcc-c++ (or g++)

    • git

    • Rust

      For information about how to install Rust, see the Rust documentation.

  4. Shallow clone the Zowe CLI Git repository for the version of CLI that you installed. Open a command line window and issue the following command:

    git clone https://github.com/zowe/zowe-cli –depth 1 –branch v$(zowe –version)
  5. Change to the following directory:

    zowe-cli/zowex
  6. Build the daemon binary. Issue the following command from the zowe-cli/zowex directory:

    cargo build —-release

    After the command completes successfully, the Zowe daemon binary is a file named zowe that can be found in the target/release directory.

  7. Copy the binary to another location on the system and add that location to your PATH.

  8. To allow others to use the same binary, modify the file permissions in the binary:

    chmod <permission OCTAL> zowe
    chown <user>:<group> zowe

    The following example illustrates the command to allow all users to run the Zowe binary. However, only the user that created the binary can overwrite the binary.

    chmod 755 zowe
note

You can delete the .zowe-cli folder that was created in Step 4 after the binary builds successfully. The Zowe daemon commands will not function, and the daemon will need to be rebuilt for all new versions of Zowe CLI.