Go to file
2023-12-01 23:02:33 +01:00
cmd initial 2023-12-01 23:02:33 +01:00
contrib initial 2023-12-01 23:02:33 +01:00
ent initial 2023-12-01 23:02:33 +01:00
runner initial 2023-12-01 23:02:33 +01:00
.gitignore initial 2023-12-01 23:02:33 +01:00
go.mod initial 2023-12-01 23:02:33 +01:00
go.sum initial 2023-12-01 23:02:33 +01:00
gomanager initial 2023-12-01 23:02:33 +01:00
LICENSE initial 2023-12-01 23:02:33 +01:00
main.go initial 2023-12-01 23:02:33 +01:00
README.md initial 2023-12-01 23:02:33 +01:00

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