Hello all.
My NetXMS 4.3.0 run on Debian 10.
When I stop my server, I get the message "a stop job is running for NetXMS core server" lasting 15 minutes. How to modify this timer? 
			
			
			
				Most probable reason is that database engine gets stopped first. After that netxms waits for reconnection to the DB to write data prior to shutdown. 
			
			
			
				Thank you very much for your research lead. On the other hand, I don't know which file to modify so that MySQL stops after NetXMS Core server.
			
			
			
				Since Debian uses systemd, After=   parameter in netxmsd.service should help. 
https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Before=
Pls update, if you need an example
			
			
			
				Good morning. Fixed issue by changing TimeoutSec from 900 to 60 in netxmsd.service file.
			
			
			
				Hi,
May i know where is path location this  "netxmsd.service" this file?
I'm using ubuntu 22 server.
Thanks and appreciate your feedback
			
			
			
				Quote from: kronicklez on February 18, 2025, 03:57:32 AMHi,
May i know where is path location this  "netxmsd.service" this file?
I'm using ubuntu 22 server.
Thanks and appreciate your feedback
you can add override by running "systemctl edit netxms-server". It's not recommended to modify unit file directly - it might be overwritten by the upgrade.
			
 
			
			
				Hi Alex,
I try edit the file that u mention and uncomment "# TimeoutSec=900" to "# TimeoutSec=60" but get error below. Do i need to stop first service befor edit the file? Thanks and appreciate your feedback
root@ubuntu22:~# systemctl edit netxms-server
Editing "/etc/systemd/system/netxms-server.service.d/override.conf" canceled: temporary file is empty.
			
			
			
				I'd guess something wrong with how editor is configured in the system. You can try configuring that with:
update-alternatives --config editor
			
			
			
				There are comments by systemctl:
### Editing /etc/systemd/system/netxms-server.service.d/override.conf
### Anything between here and the comment below will become the new contents of the file
...
### Lines below this comment will be discarded
Your changes were just ignored.
Proper override should be something like this:
### Anything between here and the comment below will become the new contents of the file
[Unit]
After=network.target postgresql.service
TimeoutSec=900
... more overrides
### Lines below this comment will be discarded
But I want to point out that TimeoutSec=900 is default value in the unit file (check /lib/systemd/system/netxms-server.service)
			
			
			
				My guess is that DB is shutting down before the core process and netxmsd waits for connection to write cached information.
Add "After=" section to your unit override.
			
			
			
				Hi,
Quote from: Filipp Sudanov on February 18, 2025, 05:17:04 PMI'd guess something wrong with how editor is configured in the system. You can try configuring that with:
update-alternatives --config editor
Currently i'm using nano. Is it issue using nano?
root@ubuntu22:~# update-alternatives --config editor
There are 4 choices for the alternative editor (providing /usr/bin/editor).
  Selection    Path                Priority  Status
------------------------------------------------------------
* 0            /bin/nano            40        auto mode
  1            /bin/ed            -100      manual mode
  2            /bin/nano            40        manual mode
  3            /usr/bin/vim.basic  30        manual mode
  4            /usr/bin/vim.tiny    15        manual mode
			
				Nano is fine. Could be that you tried to add the text to the end of the file that opened for editing? Note that text should be added between 
### Anything between here and the comment below will become the new contents of the file
and
### Lines below this comment will be discarded