Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
ModbusServer RPM for headless deployments
March 1, 2019
22:17, EET
Avatar
hbrackel
Member
Members
Forum Posts: 91
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Hi there,

I tried to install the ModbusServer on a headless RHEL box. I noticed dependency conflicts with other installed applications, interestingly on postfix (email???) and mysql/mariadb packages. None of those packages should actually be required by the ModbusServer.

Would it be possible to publish a second set of RPM and DEB packages with minimal dependencies just for headless deployments?

Prior to the attempted installation on the RHEL box I test-installed the ModbusServer in a CentOS VM. apart from the huge list of dependencies, the installation and directory layout looks really good.

Thanks,
Hans-Uwe

March 4, 2019
10:06, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 422
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

The list of dependencies is mostly what the java(fx)packager (of a JDK 8) has given by default. It has few added as e.g. the UI should be able to control the service.

We can look into this in future versions, but with our current toolchain (javapackager) it would be harder to do (but we’ll probably anyway need to update that as the tool was removed in newer java versions..).

If you wish to try/test, the rpm should be editable via ‘rpmrebuild -enp ‘.

Current list of Requires: polkit redhat-lsb ld-linux.so.2 libX11.so.6 libXext.so.6 libXi.so.6 libXrender.so.1 libXtst.so.6 libasound.so.2 libc.so.6 libdl.so.2 libgcc_s.so.1 libm.so.6 libpthread.so.0 libthread_db.so.1

Assuming you will only run it as the service, the polkit probably is not needed. And since you should have systemd, the redhat-lsb should not be needed either (need to check at some point, probably redhat-lsb-core here would be enough anyway; that is needed for SystemV).

Alternatively you could try running the portable version (however you would need to do service install yourself and additionally install a Java 8 runtime).

March 15, 2019
8:58, EET
Avatar
hbrackel
Member
Members
Forum Posts: 91
Member Since:
February 21, 2014
sp_UserOfflineSmall Offline

Good morning,

I created bash scripts to perform an installation/update/uninstallation based on the portable installation package (tar.gz). These are effectively the same scripts which a native package (DEB, RPM) would be performing (NB: all it requires as external dependencies is indeed OpenJdk 1.8). This includes putting the files in the right location, creating an application user, creating systems service files etc. Would it be permissible from a license perspective to create an RPM package from those scripts and host them on a company repository? This would ease the installation and the documentation significantly.

Thanks,
Hans-Uwe

March 15, 2019
10:10, EET
Avatar
Jouni Aro
Moderator
Moderators
Forum Posts: 833
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Hi Hans-Uwe,

Thanks for the question. Yes, you may do so to help your own distribution of the Modbus Server.

Might be interesting if you could share how you are doing it by email, in case there would be something that we could learn to do better as well.

BR, Jouni Aro

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 119

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 91

pramanj: 86

ibrahim: 68

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 36

Rainer Versteeg: 32

peterrob45: 25

Member Stats:

Guest Posters: 0

Members: 897

Moderators: 12

Admins: 1

Forum Stats:

Groups: 3

Forums: 14

Topics: 898

Posts: 3787

Newest Members:

thojermaine, Lukas, lbtsheldon, dpto.informatica, nolazky8119, peter.jakubik, amaralesbeltateresa@yahoo.com, amaralesbeltateresa@gmail.com, esbeltateresaamaral@yahoo.com.br, doanphan111

Moderators: Jouni Aro: 833, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 422, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 16, Markus Johansson: 1

Administrators: admin: 0