fixes to the packaging
This commit is contained in:
parent
c65d006423
commit
375e4f2117
2
Makefile
2
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
|
||||
|
|
15
control
15
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 <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
|
||||
|
|
6
postinst
6
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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue