mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-15 22:48:19 +00:00
37 lines
796 B
SYSTEMD
37 lines
796 B
SYSTEMD
|
[Unit]
|
||
|
Description=Prysm Eth2 Beacon Chain
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
User=prysm-beacon
|
||
|
Group=prysm-beacon
|
||
|
Type=simple
|
||
|
ExecStart=/usr/bin/beacon-chain --config-file /etc/prysm/beacon-chain.yaml --accept-terms-of-use
|
||
|
|
||
|
NoNewPrivileges=yes
|
||
|
CapabilityBoundingSet=
|
||
|
SystemCallArchitectures=native
|
||
|
SystemCallFilter=@system-service
|
||
|
|
||
|
PrivateDevices=yes
|
||
|
PrivateUsers=yes
|
||
|
PrivateTmp=yes
|
||
|
|
||
|
ProtectSystem=strict
|
||
|
ReadWritePaths=/var/lib/prysm/beacon-chain
|
||
|
ProtectClock=yes
|
||
|
ProtectHome=true
|
||
|
ProtectKernelLogs=yes
|
||
|
ProtectKernelModules=yes
|
||
|
ProtectKernelTunables=yes
|
||
|
ProtectHostname=yes
|
||
|
ProtectControlGroups=yes
|
||
|
|
||
|
RestrictNamespaces=yes
|
||
|
RestrictRealtime=yes
|
||
|
RestrictSUIDSGID=yes
|
||
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|