[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: Building binary package, howto enable init.d/systemd start



Dear Tim,

I followed your advise to restucture my stuff exactly like you
suggested.

Putting all files in a structure below source, Makefile,
PACKAGE.install ... everything.

And now it works!

I get init.d and systemd _enabled_ start scripts.

Installing this way I get an error at the target:

$ sudo dpkg -i Kletschke_deb/loqitmon_1.0-1_amd64.deb
(Reading database ... 261966 files and directories currently installed.)
Preparing to unpack .../loqitmon_1.0-1_amd64.deb ...
Unpacking loqitmon (1.0-1) over (1.0-1) ...
Setting up loqitmon (1.0-1) ...
invoke-rc.d: syntax error: unknown option "--skip-systemd-native"
dpkg: error processing package loqitmon (--install):
 installed loqitmon package post-installation script subprocess returned error exit status 1
Processing triggers for ureadahead (0.100.0-20) ...
Processing triggers for systemd (237-3ubuntu10.9) ...
Errors were encountered while processing:
 loqitmon

This is - I suppose - done because the usage of init.d and systemd was
detected and a mechanism was built in to not do native systemd.
May be due to comapt level settings the target system has not this
commandline option available (yet).

I then the omitted the init.d script entirely and I get this on the target:

$ sudo dpkg -i Kletschke_deb/loqitmon_1.0-1_amd64.deb
(Reading database ... 261968 files and directories currently installed.)
Preparing to unpack .../loqitmon_1.0-1_amd64.deb ...
Unpacking loqitmon (1.0-1) over (1.0-1) ...
Setting up loqitmon (1.0-1) ...
Created symlink /etc/systemd/system/loqitmon.service → /lib/systemd/system/loqitmon.service.
Created symlink /etc/systemd/system/multi-user.target.wants/loqitmon.service → /lib/systemd/system/loqitmon.service.

e voila, it works fine!


Many thanks for your suggestion!


Kind Regards
Konstantin




-- 
INSIDE M2M GmbH
Konstantin Kletschke
Berenbosteler Straße 76 B
30823 Garbsen

Telefon: +49 (0) 5137 90950136
Mobil: +49 (0) 151 15256238
Fax: +49 (0) 5137 9095010

konstantin.kletschke@inside-m2m.de
http://www.inside-m2m.de 

Geschäftsführung: Michael Emmert, Derek Uhlig
HRB: 111204, AG Hannover


Reply to: