Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

WatchTower Command Line

eMxyzptlk edited this page Oct 26, 2011 · 2 revisions

WatchTower Command Line

WatchTower provides a simple command line interface for installing and loading the daemon as well as opening the web interface.

You can get a comprehensive help running

$ watchtower help

Available commands

Install

This command installs WatchTower, it creates a default config file located at ~/.watch_tower/config.yml and it installs the boot loader, the location of the boot loader depends on your operation system, on Mac OS X it is install at ~/Library/LaunchAgents/fr.technogate.WatchTower.plist

install_bootloader

This command installs only the boot loader of WatchTower, the location of the boot loader depends on your operation system, on Mac OS X it is install at ~/Library/LaunchAgents/fr.technogate.WatchTower.plist.

The location of the watch_tower binary is hardcoded in the boot loader, so you should re-install the boot loader after each update using the install_bootloader

This command takes one optional argument --force or -f which replaces the boot loader without asking.

load_bootloader

This command loads or activates the boot loader, which starts the WatchTower daemon.

unload_bootloader

This command unloads or deactivates the boot loader, which stops the WatchTower daemon.

reload_bootloader

This command unloads and loads the boot loader, which restarts the WatchTower daemon.

start

This command starts the daemon manually and takes the following optional arguments

  • --debug or -d This option enables debug mode
  • --bootloader or -b This option tells WatchTower that it is invoked from the boot loader, please do not used it manually
  • --foreground or -f This option tells WatchTower to not fork and stays attached to the invoking process
  • --host or -h This option takes one required argument which the host to bind the web serve to, it is localhost by default.
  • --port or -p This option takes one required argument which the port to bind the web serve to, it is 9282 by default.

open

This command opens the web interface in the default browser.