From 95b9b2514cbb36239c038052266247b513b4988e Mon Sep 17 00:00:00 2001 From: dpuzyrkov <dpuzyrkov@termt.com> Date: Thu, 16 Jun 2022 13:37:06 +0300 Subject: [PATCH] [*] .service file modification from cellgainz to run node from user cellframe-node. --- dist.linux/share/cellframe-node.service | 11 ++--------- prod_build | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/dist.linux/share/cellframe-node.service b/dist.linux/share/cellframe-node.service index 2003ba0fa..51f096d48 100644 --- a/dist.linux/share/cellframe-node.service +++ b/dist.linux/share/cellframe-node.service @@ -3,20 +3,13 @@ Description=Cellframe Node After=network.target [Service] -#Type=forking -#OOMScoreAdjust=-1000 -#PIDFile=/opt/cellframe-node/var/run/cellframe-node.pid WorkingDirectory=/opt/cellframe-node ExecStart=/opt/cellframe-node/bin/cellframe-node & -#ExecStop=/opt/cellframe-node/bin/cellframe-node --stop ExecStop=/bin/kill -SIGTERM $MAINPID Restart=always -#User=cellframe-node -#Group=cellframe-node -User=root -Group=root +User=cellframe-node +Group=cellframe-node RestartSec=10 -CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_IPC_LOCK CAP_KILL CAP_LEASE CAP_MKNOD CAP_NET_ADMIN CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYS_RAWIO CAP_SYSLOG CAP_WAKE_ALARM CAP_SYS_RESOURCE CAP_DAC_READ_SEARCH [Install] WantedBy=multi-user.target diff --git a/prod_build b/prod_build index ba8db76a5..35e3e239a 160000 --- a/prod_build +++ b/prod_build @@ -1 +1 @@ -Subproject commit ba8db76a5af2da28937641fbc5f4716d93c7fe59 +Subproject commit 35e3e239a1e52af46c3d1fee4f17ec89fd3fce08 -- GitLab