uptimed

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

README

uptimed

This is uptimed. The poor man's dyndns. It calls a webserver under your control regularly and comes with a service template.

Installation

You can also check out the repository and build it with a uptodate golang toolchain, like so:

git clone git@github.com:4thel00z/uptimed.git
cd uptimed
make build
# This will create the service template for you
env INTERVAL=30 USER=other_username URL=https://your.service make service > /tmp/uptimed.service
Systemd integration

If you want systemd integration populate your .env with the following:

# domain of your service
export URL=https://your.service?someidentifier=youcanlookforinthelog
# in seconds
export INTERVAL=30

There is an .env.example you can copy over to .env. Also make sure to run the service make target (it will print the .service file for you on stdout):

mv .env.example .env
vim .env
source .env
make service

How does it work

The url to be called can be configured using the -url flag or the UPTIMED_URL environment variable. The sleeping interval defaults to 30 seconds and can be set via the -interval flag. These are populated in the service file for you, as can be seen in the installation section

License

This project is licensed under the GPL-3 license.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL