INODE64 3050b7a8c4 Include eclass for new nodejs ebuilds
New packages (zigbee2mqtt and node-red) from my gentoo overlay (https://github.com/inode64/inode64-overlay)

Signed-off-by: INODE64 <ffelix@inode64.com>
2023-02-20 19:11:33 +01:00

43 lines
840 B
Desktop File

[Unit]
Description=node-red
After=network.target
After=mosquitto.service
[Service]
ExecStart=npm start
WorkingDirectory=/usr/lib64/node_modules/node-red/packages/node_modules/node-red/
StandardOutput=inherit
StandardError=inherit
Restart=always
User=node-red
CapabilityBoundingSet=
NoNewPrivileges=true
RemoveIPC=true
LockPersonality=true
ProtectControlGroups=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectHostname=true
ProtectProc=noaccess
ProtectClock=yes
DeviceAllow=char-* rw
RestrictRealtime=true
RestrictSUIDSGID=true
RestrictNamespaces=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
ReadWritePaths=/var/lib/node-red
SystemCallArchitectures=native
SystemCallFilter=@system-service @pkey
[Install]
WantedBy=multi-user.target