summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-08 11:23:44 -0500
committerJeff Carr <[email protected]>2024-10-08 11:23:44 -0500
commitded9d338cc8e80943d296a44c5814f4579e185c2 (patch)
treeb7001296e0692a9250ac8a794103673ca0c8e3c6
parent2b1eed1409f598000edc26de189261e0d70881a6 (diff)
attempt a new debian package build
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--Makefile8
-rw-r--r--args.go1
2 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 510d5e9..0c9464d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
all:
- @echo "make run # will build and run the daemon here"
- @echo "make debian # will build a debian package"
+ @echo "make run # will build and run the daemon here"
+ @echo "make debian # will build a debian package"
+ @echo "make restart # restart the daemon"
+ @echo "make enable # enable daemon on boot"
+ @echo "make log # watch the daemon log"
log:
@#systemctl status gowebd.service
@@ -9,7 +12,6 @@ log:
enable:
su -c "systemctl enable gowebd.service"
-
start:
su -c "systemctl start gowebd.service"
diff --git a/args.go b/args.go
index 2263d40..0a36c28 100644
--- a/args.go
+++ b/args.go
@@ -12,6 +12,7 @@ import (
var args struct {
ListRepos bool `arg:"--list-repos" help:"list all repositories"`
+ Port int `arg:"--port" help:"port to run on (default is 2520)"`
}
func init() {