fixes to the packaging

This commit is contained in:
Jeff Carr 2024-11-16 04:57:40 -06:00
parent c65d006423
commit 375e4f2117
4 changed files with 18 additions and 11 deletions

View File

@ -26,7 +26,7 @@ release-build:
# makes a .deb package # makes a .deb package
debian: debian:
go-deb --no-gui --repo go.wit.com/apps/zookeeper go-deb --auto --repo go.wit.com/apps/zookeeper
goimports: goimports:
goimports -w *.go goimports -w *.go

15
control
View File

@ -1,8 +1,15 @@
Source: zood Source: zookeeper-go
Build-Depends: golang Build-Depends: golang
Package: zood Package: zookeeper-go
Conflicts: zookeeper
Breaks: zookeeper
Replaces: zookeeper
Maintainer: Jeff Carr <jcarr@wit.com> Maintainer: Jeff Carr <jcarr@wit.com>
Architecture: amd64 Architecture: amd64
Depends: Depends:
URL: https://go.wit.com/lib/daemons/zood URL: https://go.wit.com/apps/zookeeper
Description: the zookeeper daemon 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

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
set -e set -e
systemctl enable zood.service systemctl enable zookeeper.service
systemctl stop zood.service systemctl stop zookeeper.service
systemctl start zood.service systemctl start zookeeper.service

View File

@ -1,11 +1,11 @@
[Unit] [Unit]
Description=zood Description=zookeeper
[Service] [Service]
User=root User=root
Type=simple Type=simple
ExecStart=/usr/bin/zood ExecStart=/usr/bin/zookeeper
ExecStop=killall zood ExecStop=killall zookeeper
Restart=on-failure Restart=on-failure
RestartSec=5 RestartSec=5