43 lines
916 B
Desktop File
43 lines
916 B
Desktop File
[Unit]
|
|
Description=LisgloSIPS %i service
|
|
After=network-online.target mysql.service redis-server.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=lisglosips
|
|
Group=lisglosips
|
|
WorkingDirectory=/opt/lisglosips/current
|
|
Environment=NODE_ENV=production
|
|
EnvironmentFile=/etc/lisglosips/%i.env
|
|
ExecStart=/usr/bin/node ${LISGLOSIPS_ENTRYPOINT}
|
|
Restart=on-failure
|
|
RestartSec=3s
|
|
TimeoutStartSec=30s
|
|
TimeoutStopSec=30s
|
|
KillSignal=SIGTERM
|
|
UMask=0027
|
|
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
ProtectClock=true
|
|
ProtectHostname=true
|
|
RestrictSUIDSGID=true
|
|
RestrictRealtime=true
|
|
LockPersonality=true
|
|
CapabilityBoundingSet=
|
|
AmbientCapabilities=
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
StateDirectory=lisglosips
|
|
RuntimeDirectory=lisglosips
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|