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: 135
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: 983
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: 135
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: 1009
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: 518

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 677

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1