lnd/templates/lnd.service.j2
changeset 25 c2bab619cfb5
parent 24 a216f4e9b000
equal deleted inserted replaced
24:a216f4e9b000 25:c2bab619cfb5
     3 Wants={{lnd_bitcoin_node}}.service
     3 Wants={{lnd_bitcoin_node}}.service
     4 After={{lnd_bitcoin_node}}.service
     4 After={{lnd_bitcoin_node}}.service
     5 
     5 
     6 [Service]
     6 [Service]
     7 Type=notify
     7 Type=notify
       
     8 
     8 ExecStart=/usr/local/bin/lnd
     9 ExecStart=/usr/local/bin/lnd
       
    10 ExecStop=/usr/local/bin/lncli stop
       
    11 
     9 User={{lnd_user}}
    12 User={{lnd_user}}
       
    13 Group={{lnd_user}}
       
    14 
       
    15 Restart=on-failure
       
    16 RestartSec=60
       
    17 
       
    18 TimeoutStartSec=1200
       
    19 TimeoutStopSec=3600
    10 
    20 
    11 PrivateTmp=true
    21 PrivateTmp=true
    12 ProtectSystem=full
    22 ProtectSystem=full
    13 NoNewPrivileges=true
    23 NoNewPrivileges=true
    14 PrivateDevices=true
    24 PrivateDevices=true