| 1 |
railcontrol for Debian |
| 2 |
--------------------- |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
!!! WARNING !!! |
| 7 |
BE AWARE, ONCE RailControl IS RUNNING, EVERY USER AND COMPUTER IN THE SAME |
| 8 |
NETWORK GAINS ACCESS TO CONTROL AND DAMAGE YOUR ROLLING STOCK AND LAYOUT! |
| 9 |
|
| 10 |
IT IS YOUR RESPONSIBILITY TO SET UP A FIREWALL AND/OR TAKE OTHER MEASURES TO |
| 11 |
BLOCK MALICIOUS PERSONS/COMPUTERS! |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
The systemd service for RailControl is disabled by default because of the |
| 16 |
above warning. To enable it: |
| 17 |
|
| 18 |
1. edit /etc/railcontrol.conf to your needs and |
| 19 |
2. execute (as root): |
| 20 |
systemctl enable --now railcontrol.service |
| 21 |
|
| 22 |
To disable the system service: |
| 23 |
systemctl disable --now railcontrol.service |
| 24 |
|
| 25 |
NOTE: When you enable the railcontrol.service from the Debian package, the top |
| 26 |
left button 'Exit RailControl' in the web interface actually restarts |
| 27 |
RailControl! |
| 28 |
|
| 29 |
That's because the Debian's railcontrol.service restarts railcontrol on regular |
| 30 |
exit. Your Debian package maintainer decided to do so, because that's a |
| 31 |
convenient way to reconnect RailControl to a digital command station when the |
| 32 |
network connection was lost. RailControl does not show any obvious error in that |
| 33 |
case, which likely confuses users. Upstream confirmed this will not be addressed |
| 34 |
anytime soon. |
| 35 |
|
| 36 |
To actually stop RailControl, execute (as root): |
| 37 |
systemctl stop railcontrol.service |
| 38 |
|
| 39 |
To start it again, execute (as root): |
| 40 |
systemctl start railcontrol.service |
| 41 |
|
| 42 |
The systemd service is executed at high priority to keep latency low and keep |
| 43 |
RailControl responsive for, e.g., emergency stops. This does not guarantee |
| 44 |
things can go wrong, though! |
| 45 |
Respective options in railcontrol.service are: |
| 46 |
|
| 47 |
[…] |
| 48 |
CPUWeight=10000 |
| 49 |
Nice=-20 |
| 50 |
IOSchedulingClass=realtime |
| 51 |
IOSchedulingPriority=0 |
| 52 |
[…] |
| 53 |
|
| 54 |
railcontrol.service logs to the systemd journal. To inspect the log, execute (as |
| 55 |
root): |
| 56 |
journalctl --unit railcontrol.service --pager-end |
| 57 |
|
| 58 |
Debian specific dynamic linking: |
| 59 |
While the source package of railcontrol includes code copies of SQLite and zlib |
| 60 |
(details are documented in README.source), the binary package does NOT include |
| 61 |
those. The binary package is linked against the system libsqlite and system |
| 62 |
zlib1g packages. |
| 63 |
|
| 64 |
-- Bruno Kleinert <[email protected]> Thu, 08 Jan 2026 19:33:34 +0100 |