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
debian:
go-deb --no-gui --repo go.wit.com/apps/zookeeper
go-deb --auto --repo go.wit.com/apps/zookeeper
goimports:
goimports -w *.go

15
control
View File

@ -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 <jcarr@wit.com>
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

View File

@ -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

View File

@ -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