How can I create a service with a name different from the name of the package?
I'm preparing a package that provides also a service file (systemd config) that should have a name different from the package.
Currently I added a file debian/pkg_name.service and it works but the name does not reflect the service started.
I already noticed that dh_installinit
has a --name
option but tha man page lists
debian/package.name.init, debian/package.name.default and debian/package.name.upstart instead of the usual debian/package.init, debian/package.default and debian/package.upstart
but not package.service. Moreover I haven't really understood where I should place the line. Currently my debian/rules has
%:
dh $@ --with bash-completion --with systemd
--name
option ofdh_installinit
.%: dh $@ --with bash-completion --with systemd --with python2 override_dh_installinit: dh_installinit -p thunder-buildout-prod --name oooctl.service
But I get an error I can't really understand: Use of uninitialized value $filename in concatenation (.) or string at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 410. I get this error even if I use an absolute path