Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mono-Documentation: Document how VRS can be run as system service. #103

Open
robbyb67 opened this issue Mar 22, 2023 · 1 comment
Open

Comments

@robbyb67
Copy link

I think many users - especially in the Linux domain - want to run the vr server as a system service/daemon. This can be achieved by creating a file /etc/systemd/system/virtualradar.service with the following content:

[Unit]
Description=Virtual Radar Server ADS-B Plotter
Wants=network.target
After=syslog.target network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/mono <absolute Path>/VirtualRadar/VirtualRadar.exe -nogui
Restart=on-failure
RestartSec=10
KillMode=process
User=<vrs-user>
Group=<vrs-group>

[Install]
WantedBy=multi-user.target

The , and has of cause to be replaced by installation specific values.

Call sudo systemctl daemon-reload to let systemd get aware of the new file.
You can now start / stop VRS by issuing sudo service virtualradar start/stop, sudo service virtualradar status shows thew current status of the server including the last lines logged to console.

To enable automatic start of the service at system startup: sudo systemctl enable virtualradar

@FrogCF
Copy link

FrogCF commented May 14, 2023

Debian 10/11

[Service]
Type=simple
ExecStart=/usr/bin/mono /VirtualRadar/VirtualRadar.exe -nogui
Restart=on-failure
RestartSec=5
KillMode=process
User=root
Group=root

[Install]
WantedBy=multi-user. Target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants