github.com/mysteriumnetwork/node@v0.0.0-20240516044423-365054f76801/bin/package/installation/mysterium-node.service (about)

     1  # If you modify this, please also make sure to edit initd.sh
     2  
     3  [Unit]
     4  Description=Server for Mysterium - decentralised VPN Network
     5  Documentation=https://mysterium.network/
     6  Requires=network-online.target
     7  After=network-online.target
     8  
     9  [Service]
    10  User=mysterium-node
    11  Group=mysterium-node
    12  
    13  RuntimeDirectory=mysterium-node
    14  RuntimeDirectoryMode=0750
    15  LogsDirectory=mysterium-node
    16  
    17  EnvironmentFile=-/etc/default/mysterium-node
    18  ExecStart=/usr/bin/myst \
    19      $CONF_DIR \
    20      $SCRIPT_DIR \
    21      $DATA_DIR \
    22      $RUN_DIR \
    23      $DAEMON_OPTS \
    24      --ui.features=restart \
    25      service \
    26      --agreed-terms-and-conditions \
    27      $SERVICE_OPTS
    28  KillMode=process
    29  SendSIGKILL=yes
    30  Restart=on-failure
    31  RestartSec=5
    32  AmbientCapabilities=CAP_NET_BIND_SERVICE
    33  
    34  [Install]
    35  WantedBy=multi-user.target