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.
- 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.
- A compatible platform:
- macOS
- Linux
- Windows
- Administrator/root access for managing services.
- Optional: Go (if building from source).
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
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
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. |
redock --action [install|start|stop|uninstall]
- Install the service:
redock --action install
- Start the service:
redock --action start
- Stop the service:
redock --action stop
- Uninstall the service:
redock --action uninstall
To build the application locally:
-
Clone the repository:
git clone <repository-url> cd <repository-folder>
-
Build the binary:
go build -o redock
-
Move the binary to a location in your
PATH
, such as/usr/local/bin
:mv redock /usr/local/bin/
Service logs are printed to the console by default. For advanced logging, redirect output to a file:
redock > redock.log 2>&1
- 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.
- Linux/macOS:
This project is licensed under the MIT License. See the LICENSE
file for more details.