Repository navigation
debs -- debhelper support? #528
|
My project cares only about .deb files. Is there a way to get goreleaser's debs to invoke the standard debhelper scripts so that we can include a .service file in the debian/ directory and have its lifecycle managed automatically? Doing so manually from the postinst/prerm scripts is very error prone and likely to too easily violate deb packaging guidelines. |
Answered by
djgilcrease
Jun 25, 2022
Replies: 2 comments
|
You can just add the service file as part of your package spec. - src: ./packaging/usr/lib/systemd/system/your.service
dst: /usr/lib/systemd/system/your.service
file_info:
mode: 0644you do not and should not create a .service file as part of the post-install script |
0 replies
Answer selected by
caarlos0
|
Will the systemd service be started automatically? Doing the service start in the post-install script will also violate deb packaging guidelines. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just add the service file as part of your package spec.
you do not and should not create a .service file as part of the post-install script