diff --git a/Makefile b/Makefile index f640dbf..61bbc87 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ release-build: # makes a .deb package debian: - go-deb --no-gui --repo go.wit.com/apps/zookeeper + go-deb --auto --repo go.wit.com/apps/zookeeper goimports: goimports -w *.go diff --git a/control b/control index fa096ce..e228368 100644 --- a/control +++ b/control @@ -1,8 +1,15 @@ -Source: zood +Source: zookeeper-go Build-Depends: golang -Package: zood +Package: zookeeper-go +Conflicts: zookeeper +Breaks: zookeeper +Replaces: zookeeper Maintainer: Jeff Carr Architecture: amd64 Depends: -URL: https://go.wit.com/lib/daemons/zood -Description: the zookeeper daemon +URL: https://go.wit.com/apps/zookeeper +Description: zookeeper for homelab grids + keeps track of things in a grid. Maybe + this is similar to the apache project by + the same name, but in any case, this is + customized for the grid here at WIT diff --git a/postinst b/postinst index ea0a0b4..aaa5fa4 100755 --- a/postinst +++ b/postinst @@ -1,6 +1,6 @@ #!/bin/sh set -e -systemctl enable zood.service -systemctl stop zood.service -systemctl start zood.service +systemctl enable zookeeper.service +systemctl stop zookeeper.service +systemctl start zookeeper.service diff --git a/zookeeper.service b/zookeeper.service index e328c92..d3bfc9c 100644 --- a/zookeeper.service +++ b/zookeeper.service @@ -1,11 +1,11 @@ [Unit] -Description=zood +Description=zookeeper [Service] User=root Type=simple -ExecStart=/usr/bin/zood -ExecStop=killall zood +ExecStart=/usr/bin/zookeeper +ExecStop=killall zookeeper Restart=on-failure RestartSec=5