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. |
Beta Was this translation helpful? Give feedback.
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: 0644 you do not and should not create a .service file as part of the post-install script |
Beta Was this translation helpful? Give feedback.
-
Will the systemd service be started automatically? Doing the service start in the post-install script will also violate deb packaging guidelines. |
Beta Was this translation helpful? Give feedback.
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