SystemD Service Sample #5031
-
How can I build a deb package with systemD service ability? What I need is building (releasing) a deb package from go binary (or source, no matter) in which when user install, a systemd service is automatically installed and runs (like many usual app packages, for instance nginx) |
Beta Was this translation helpful? Give feedback.
Answered by
caarlos0
Jul 29, 2024
Replies: 1 comment
-
you'll need to have the systemd unit added to your nfpm configuration, and, a post-install script to activate it some docs that might help: https://nfpm.goreleaser.com/tips/#systemd-and-upstartinit |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
caarlos0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you'll need to have the systemd unit added to your nfpm configuration, and, a post-install script to activate it
some docs that might help: https://nfpm.goreleaser.com/tips/#systemd-and-upstartinit