diff options
Diffstat (limited to 'cellframe-node.service')
-rw-r--r-- | cellframe-node.service | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/cellframe-node.service b/cellframe-node.service new file mode 100644 index 000000000000..74f03648ed9f --- /dev/null +++ b/cellframe-node.service @@ -0,0 +1,20 @@ +[Unit] +Description=Cellframe Node +After=network-online.target +Wants=network-online.target + +[Service] +WorkingDirectory=/opt/cellframe-node +ExecStart=/opt/cellframe-node/bin/cellframe-node & +ExecStop=/bin/kill -SIGTERM $MAINPID +Restart=always +User=root +Group=root +RestartSec=10 +LogNamespace=cellframe +StandardOutput=null +StandardError=journal +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
\ No newline at end of file |