-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build packages for releases #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I'm not a big fan of goreleaser
and prefer building packages with a script instead, but it does make things a bit more convenient.
goreleaser.yml
Outdated
- apk | ||
- deb | ||
- rpm | ||
bindir: /usr/sbin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why in sbin
? I believe that is reserved for binaries that require root
permissions, and hareply
doesn't strictly require it (as long as the server port is >1024).
So I would make this /usr/bin
instead.
assets/packages/hareply.service
Outdated
Environment="PIDFILE=/run/hareply.pid" | ||
EnvironmentFile=/etc/default/hareply | ||
ExecStart=/usr/sbin/hareply | ||
ExecReload=/bin/kill -s SIGUSR1 $MAINPID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hareply
doesn't currently listen to this signal, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right. This comes from the copy paste from how dataplaneapi
does things for their systemd service: but we indeed do not need this or use it currently.
I'll remove this command entirely, as well as the PIDFILE
options below
assets/packages/hareply.service
Outdated
PIDFile= | ||
GuessMainPID=1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not well versed in systemd unit files, but I'm curious: why set PIDFILE
in the environment, but then make PIDFile
blank and use GuessMainPID
? I could look it up as well, but if you explain it then it saves me from reading systemd documentation 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked into it in more detail, my conclusion in the end is that PID files should no longer be required for most services, and rather Type=simple
should be sufficient [source]
Builds
deb
,rpm
,apk
packages.Based on haproxytech/dataplaneapi@0264138