Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
howto:systemd [2016/11/21 09:52] – created ragnarok | howto:systemd [2023/04/07 12:28] (current) – Wording digital man | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Start Synchornet | + | ====== Start, Control, and Monitor Synchronet |
- | If you run modern GNU/Linux distribution, | + | If you run a modern GNU/Linux distribution, |
- | Instead of use the old / | + | ===== Install ===== |
- | Debian: | + | If you've installed Synchronet, you should already have the required [[https:// |
+ | sbbs/ | ||
+ | |||
+ | Read [[https:// | ||
- | Create and edit the follow | + | - Copy or symlink |
+ | - Enable the BBS service by running: '' | ||
+ | - To run the BBS service without rebooting, run: '' | ||
- | / | + | Any necessary edits should be made using '' |
+ | | ||
+ | This will allow you to integrate any future upstream changes to the '' | ||
+ | After editing the '' | ||
+ | sudo systemctl daemon-reload | ||
+ | |||
+ | ==== Recommended Tweaks to the Service Section ==== | ||
+ | To allow core file generation (for crash/ | ||
+ | |||
+ | <file sbbs.service> | ||
+ | LimitCORE=infinity | ||
+ | </ | ||
+ | |||
+ | ==== Where is My Service File? ==== | ||
+ | |||
+ | If you are already running Synchronet from systemd but can't remember where the config file is, the following commands will help. | ||
+ | |||
+ | systemctl show -p FragmentPath sbbs | ||
+ | |||
+ | |||
+ | ===== Control ===== | ||
+ | |||
+ | To start the Synchronet service | ||
+ | systemctl start sbbs | ||
+ | |||
+ | To restart (stop and then start) the Synchronet service | ||
+ | systemctl restart sbbs | ||
+ | | ||
+ | To stop the Synchronet service | ||
+ | systemctl stop sbbs | ||
+ | | ||
+ | ===== Monitor ===== | ||
+ | |||
+ | Display the current Synchronet service status: | ||
+ | systemctl status sbbs | ||
+ | | ||
+ | Watch the current Synchronet service status in real-time: | ||
+ | watch systemctl status sbbs | ||
+ | | ||
+ | Read/search the log output of the Synchronet service: | ||
+ | journalctl -u sbbs | ||
+ | | ||
+ | Watch the log output of the Synchronet service in real-time: | ||
+ | journalctl -f -u sbbs | ||
+ | |||
+ | ==== Monitoring with Byobu (Tmux backend) ==== | ||
+ | You can have a text mode dashboard for monitoring and configuring your BBS realtime by using Byobu with Tmux or GNU Screen backends. If you are using the Tmux backend. The following configuration splits your screen in three panes: one for SBBS log, other for UMONITOR and a last one for SCFG. Please note that this configuration assumes SBBSCTRL variable is set and that access permissions to the needed files are set for the current user. | ||
+ | |||
+ | Create the file '' | ||
+ | |||
+ | new-session sbbs ; | ||
+ | new-window -n sbbs tail -n 50 -f / | ||
+ | split-window -h / | ||
+ | split-window -t 1 -v / | ||
+ | set-option mouse on | ||
+ | |||
+ | And then run: '' | ||
+ | |||
+ | If you want this to be your default environment when you log at your Synchronet server, then write the configuration to the '' | ||
+ | |||
+ | The following screenshot shows the result: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | If are using also **binkd** for FidoNet, this configuration will split the dashboard in 4 panes: | ||
+ | |||
+ | new-session sbbs ; | ||
+ | new-window -n sbbs tail -n 50 -f / | ||
+ | split-window -p 50 -h / | ||
+ | split-window -t 0 -p 20 -v tail -f / | ||
+ | split-window -t 1 -v / | ||
+ | set-option mouse on | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ==== Debian (alternative using tmux) ==== | ||
+ | |||
+ | You can use [[https:// | ||
+ | |||
+ | / | ||
+ | SBBSCTRL=/ | ||
+ | |||
+ | / | ||
[Unit] | [Unit] | ||
Description=Synchronet BBS | Description=Synchronet BBS | ||
Documentation=man: | Documentation=man: | ||
After=network.target | After=network.target | ||
+ | | ||
[Service] | [Service] | ||
Restart=on-failure | Restart=on-failure | ||
+ | Type=forking | ||
+ | KillMode=none | ||
EnvironmentFile=-/ | EnvironmentFile=-/ | ||
- | ExecStart=/ | + | |
- | | + | |
+ | | ||
+ | |||
User=root | User=root | ||
Group=root | Group=root | ||
+ | | ||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
+ | Using tmux, Synchronet start in a session (called sbbs), you can attach to the running console using //tmux attach -t sbbs// | ||
+ | {{: | ||
===== See Also ===== | ===== See Also ===== | ||
* [[: | * [[: | ||
- | + | * [[https:// | |
- | {{tag>}} | + | * [[https:// |
+ | {{tag>linux systemd}} | ||