Re: How should the systemd setup in a postinst script look?

2018-01-27 Thread Steinar Bang
> Emmanuel Bourg : > Le 26/01/2018 à 19:26, Steinar Bang a écrit : >> W: karaf: codeless-jar >> usr/share/karaf/system/org/apache/aries/blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0/org.apache.aries.blueprint.core.compatibility-1.0.0.jar > You can ignore

Re: How should the systemd setup in a postinst script look?

2018-01-26 Thread Steinar Bang
> Steinar Bang : > However, lintian aren't happy with the results: > sb@lorenzo:~/git/karaf-debian$ lintian ~/git/karaf_4.1.4-8~9.30_all.deb > W: karaf: init.d-script-not-marked-as-conffile etc/init.d/karaf > E: karaf: init.d-script-not-included-in-package etc/init.d/karaf

Re: How should the systemd setup in a postinst script look?

2018-01-26 Thread Emmanuel Bourg
Le 26/01/2018 à 19:26, Steinar Bang a écrit : > W: karaf: codeless-jar > usr/share/karaf/system/org/apache/aries/blueprint/org.apache.aries.blueprint.core.compatibility/1.0.0/org.apache.aries.blueprint.core.compatibility-1.0.0.jar You can ignore this one, this jar has indeed no .class file in

Re: How should the systemd setup in a postinst script look?

2018-01-26 Thread Steinar Bang
> Steinar Bang : > 4. Changed the "%:" rule of debian/rules to be > dh $@ --with systemd I figured out the problem, I had this %: dh $@ --with-systemd instead of this: %: dh $@ --with systemd Now I again get a .deb package with a daemon that starts

Re: How should the systemd setup in a postinst script look?

2018-01-26 Thread Steinar Bang
> Eugene Zhukov : > The service will be enabled and started automatically upon package > install, you don't need to do that. > Just put your .service file into debian/ folder and the > rest will be handled by Debian tools. > The line in debian/rules quoted below is also

Re: How should the systemd setup in a postinst script look?

2018-01-26 Thread Frédéric Bonnard
Hi, On Fri, 26 Jan 2018 09:56:28 +0200, Eugene Zhukov wrote: > On Thu, Jan 25, 2018 at 11:21 PM, Steinar Bang wrote: > > I am trying to get rid of the lintian messages of my apache karaf debian > > package: > > https://github.com/steinarb/karaf-debian > > > >

Re: How should the systemd setup in a postinst script look?

2018-01-26 Thread Eugene Zhukov
On Thu, Jan 25, 2018 at 11:21 PM, Steinar Bang wrote: > I am trying to get rid of the lintian messages of my apache karaf debian > package: > https://github.com/steinarb/karaf-debian > > One of the warnings still present, is: > W: karaf: maintainer-script-calls-systemctl

How should the systemd setup in a postinst script look?

2018-01-25 Thread Steinar Bang
I am trying to get rid of the lintian messages of my apache karaf debian package: https://github.com/steinarb/karaf-debian One of the warnings still present, is: W: karaf: maintainer-script-calls-systemctl postinst:30 The relevant part of the script, is: case "$1" in configure)