37 lines
865 B
Desktop File
37 lines
865 B
Desktop File
[Unit]
|
|
Description=Mission Core Node local device host
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=mission-core-node
|
|
Group=mission-core-node
|
|
ExecStart=/usr/lib/mission-core-node/node-agent
|
|
StateDirectory=mission-core-node
|
|
StateDirectoryMode=0700
|
|
RuntimeDirectory=mission-core-node
|
|
RuntimeDirectoryMode=0700
|
|
UMask=0077
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
NoNewPrivileges=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
PrivateTmp=yes
|
|
PrivateDevices=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectKernelModules=yes
|
|
ProtectControlGroups=yes
|
|
RestrictSUIDSGID=yes
|
|
# Go reads interface/address inventory through route netlink on Linux.
|
|
# CAP_NET_ADMIN stays absent; this does not grant network reconfiguration.
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_NETLINK
|
|
CapabilityBoundingSet=
|
|
LockPersonality=yes
|
|
LimitNOFILE=1024
|
|
TasksMax=64
|
|
MemoryMax=256M
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|