[Unit] Description=phoenixd - Lightning Network Node Documentation=https://phoenix.acinq.co/server After=network-online.target Wants=network-online.target [Service] Type=simple User={{ phoenixd_user }} Group={{ phoenixd_group }} WorkingDirectory={{ phoenixd_home }} Environment=PHOENIX_DATADIR={{ phoenixd_data_dir }} ExecStart={{ phoenixd_bin_dir }}/phoenixd {{ phoenixd_args | join(' ') }} Restart=always RestartSec=30 TimeoutStartSec=120 TimeoutStopSec=120 StandardOutput=journal StandardError=journal # Hardening: the node only ever writes to its own data directory NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ProtectHome=read-only ReadWritePaths={{ phoenixd_data_dir }} LimitNOFILE=65535 [Install] WantedBy=multi-user.target