cmd | ||
contrib | ||
ent | ||
runner | ||
.gitignore | ||
go.mod | ||
go.sum | ||
gomanager | ||
LICENSE | ||
main.go | ||
README.md |
gomanager
description
Go Manager is a program that watches your package binaries and if they're not the same version of your installed go version, it rebuilds the packages.
all commands must be ran as root
install
go install code.icod.de/dalu/gomanager@latest
mv ~/go/bin/gomanager /usr/local/bin/
gomanager setup
usage
add project
gomanager add \
--root-path="" \
--binary-path="" \
--service-name="" \
remove project
gomanager remove
start/run
gomanager start
systemd service
read the contrib directory The runner is ran every 24 hours.
cron job
This runs the watcher every day a 2am
crontab -e
0 2 * * * /usr/local/bin/gomanager cron
systemd timer
see the
- contrib/gomanager-cron.service
- contrib/gomanager-cron.timer
copy to /etc/systemd/system/
and
systemctl enable --now gomanager-cron.timer
uninstall
gomanager clean
rm /usr/local/bin/gomanager