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: 144
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: 1032
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: 144
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: 1026
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: 1919

Currently Online:
47 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 726

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1529

Posts: 6471

Newest Members:

gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_gallery

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1