File: //var/packages/Contacts/conf/systemd/pkg-Contacts-pushserver.service
[Unit]
Description=Contacts Push Server
IgnoreOnIsolate=true
DefaultDependencies=false
[Service]
Restart=always
TimeoutStopSec=600
LimitNOFILE=65535
User=root
KillMode=process
Slice=Contacts.slice
SyslogIdentifier=pkg-Contacts-pushserver
PermissionsStartOnly=true
Environment=NODE_PACKAGE=Node.js_v20
ExecStartPre=/bin/rm -f /tmp/contacts_frontend.sock
ExecStartPre=/bin/rm -f /tmp/contacts_backend.sock
ExecStart=/bin/bash -c 'exec /var/packages/$${NODE_PACKAGE}/target/usr/local/bin/node /var/packages/Contacts/target/nodejs/pushserver/pushserver.js'
ExecStopPost=/bin/rm -f /tmp/contacts_frontend.sock
ExecStopPost=/bin/rm -f /tmp/contacts_backend.sock
[X-Synology]