8000 GitHub - onuragtas/redock
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

onuragtas/redock

Repository files navigation

Redock Service

Redock is a service application designed to be lightweight and easily managed. It uses the kardianos/service package to simplify service management on various platforms.


Features

  • Install, start, stop, and uninstall the service via command-line flags.
  • Supports macOS, Linux, and Windows platforms.
  • Provides pre-built binaries for Apple Silicon and AMD64 architectures.
  • Environment variable configuration for better compatibility.

Requirements

  • A compatible platform:
    • macOS
    • Linux
    • Windows
  • Administrator/root access for managing services.
  • Optional: Go (if building from source).

Download and Run

For macOS

Apple Silicon
wget https://github.com/onuragtas/redock/releases/latest/download/redock_Darwin_arm64 -O /usr/local/bin/redock
chmod +x /usr/local/bin/redock
redock
AMD64
wget https://github.com/onuragtas/redock/releases/latest/download/redock_Darwin_amd64 -O /usr/local/bin/redock
chmod +x /usr/local/bin/redock
redock

For Linux

Download and Run

Download the latest release:

wget https://github.com/onuragtas/redock/releases/latest/download/redock_Linux_amd64 -O /usr/local/bin/redock
chmod +x /usr/local/bin/redock

Run the application:

redock

Service Management

The application supports the following service management actions:

Action Description
install Installs the service.
start Starts the service.
stop Stops the running service.
uninstall Removes the installed service.

Command Syntax

redock --action [install|start|stop|uninstall]

Example Commands

  • Install the service:
    redock --action install
  • Start the service:
    redock --action start
  • Stop the service:
    redock --action stop
  • Uninstall the service:
    redock --action uninstall

Building from Source

To build the application locally:

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-folder>
  2. Build the binary:

    go build -o redock
  3. Move the binary to a location in your PATH, such as /usr/local/bin:

    mv redock /usr/local/bin/

Logging

Service logs are printed to the console by default. For advanced logging, redirect output to a file:

redock > redock.log 2>&1

Troubleshooting

  • Ensure the application has proper permissions (e.g., run with sudo on Linux/macOS).
  • Check service status:
    • Linux/macOS: systemctl status redock
    • Windows: Use the Services manager.

Demo

Demo


License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0