Run as service
Here is basic service file for ruxy systemd service:
useradd -r -s /bin/false ruxy
#adding system user ruxysudo setcap cap_net_bind_service=+ep ruxy
#allow ruxy user to launch Ruxy server on privileged portvim /etc/systemd/system/ruxy.service
- (copy, edit and save contents)
chown ruxy.ruxy /usr/local/ruxy/
# allow ruxy to write logs heresystemctl enable ruxy
systemctl start ruxy
[Unit] Description="Ruxy WAF" [Service] Type=simple User=ruxy Group=ruxy ExecStart=/usr/local/ruxy/ruxy WorkingDirectory=/usr/local/ruxy/ Restart=always RestartSec=1s RuntimeDirectoryMode=0750 [Install] WantedBy=multi-user.target