23 lines
460 B
Desktop File
23 lines
460 B
Desktop File
[Unit]
|
|
Description=rpxy system service
|
|
Documentation=https://github.com/junkurihara/rust-rpxy
|
|
After=network.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/local/bin/rpxy-start.sh
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
User=rpxy
|
|
Group=rpxy
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
RuntimeDirectory=rpxy
|
|
RuntimeDirectoryMode=0750
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|