Re: Cloudnode log written to /var/log/messages
Paul Timms
8-13-18
Thanks Giuseppe, your information gave me enough of a clue to work out what was happening.


On Linux, I always use systemd to enable the cloudnode to run as a service, following Elar's original instructions:

"
[Unit]
Description=Standard ERP Cloud Node
After=syslog.target
After=network.target

[Service]
Type=simple
User=root

WorkingDirectory=
ExecStart=/hansa-cloudnode
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target

systemctl daemon-reload
systemctl stop hansa-cloudnode.service
systemctl start hansa-cloudnode.service
"

I discovered that all systemd services write their log messages to /var/log/messages by default, so the cloudnode was writing both to hansa.log and to /var/log/messages. To prevent this, I added:

StandardOutput=null


to the [Service] section, then reloaded the daemon and restarted the service. This should probably be added to the original notes on how to set up the service.
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Piotr Wycichowski
Thanks. Finally it occurred certificate problem on mail server. Weird is that the older version of SERP (2021-04-18) was able to sent mail using this server, while newer - not. Suddenly one day our SE...
11:43 22 Oct 2024
Gatis Jansons
On top of having the custom register added to the interface (register's LClass defined for a specific module in Startup).. interface languages matter as well. Make sure to add the custom regis...
10:41 16 Oct 2024