1. Beatrix Willius
  2. Valentina Server
  3. Tuesday, May 28 2024, 11:51 AM
  4.  Subscribe via email
I have a custom installer for Valentina Server which works fine. The default verbose level for Valentina ini is 2. Is there a way to change the default verbose level to 1 when installing Valentina Server? I don't want to install an ini file because you could do changes in the future to the file with new properties.
Comment
There are no comments made yet.
Ivan Smahin Accepted Answer
Hi Beatrix,

The first thing that comes to my mind is using something like sed in some script. Another one is changing it via SQL - "set property VERBOSELEVEL of server to 1" - it affects immediately.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 1
Beatrix Willius Accepted Answer
In both cases I don't know if the server was installed totally new or just a new version over an existing one.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 2
Ivan Smahin Accepted Answer
Yes, you don't know, but why it bothers you?

The first approach could be implemented in some post_install script running from the installer as a final step.
So, you know the installation directory, vServer actual name, and so, you know actual INI, and you may modify VERBOSELEVEL there using "sed".

The second approach is about to be implemented in your app, so any time it runs, it may check the VERBOSELEVEL and change it if needed. And VERBOSELEVEL changes are immediately applied to the vServer, so no need to restart vServer.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 3
Ivan Smahin Accepted Answer
Regarding "what if the new vServer version has new/renamed variables" in the INI, but user has an "old" iNI.

"Renamed vars" - is always safe to keep "old" ones, internally it's implemented in this way - the "old" name becomes an alias to the "new" name.

"New vars" - each INI param has a default value, so if no "new var" is mentioned in the INI, it will be inited with the default value, so it would not be something like "missing new features" issue.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 4
Beatrix Willius Accepted Answer
Thanks! I have been overthinking as usual. Then I'll just change the default ini file.

The users of the version of my app with Valentina Server are not really the sys admins I expected the app to use. Therefore, I do everything I can to simplify the installation.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Server
  3. # 5
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories