radicle-httpd.service
1 # Example systemd unit file for `radicle-httpd`. 2 # 3 # When running radicle-httpd on a server, it should be run as a separate user. 4 # 5 # Copy this file into /etc/systemd/system and set the User/Group parameters 6 # under [Service] appropriately, as well as the `RAD_HOME` environment variable. 7 # 8 [Unit] 9 Description=Radicle HTTP Daemon 10 After=network.target network-online.target 11 Requires=network-online.target 12 13 [Service] 14 User=seed 15 Group=seed 16 ExecStart=/usr/local/bin/radicle-httpd --listen 127.0.0.1:8080 17 Environment=RAD_HOME=/home/seed/.radicle RUST_BACKTRACE=1 RUST_LOG=info 18 KillMode=process 19 Restart=always 20 RestartSec=1 21 22 [Install] 23 WantedBy=multi-user.target