Skip to content
Snippets Groups Projects
Commit 55b7e5b6 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Overhaul the systemd uint configuration file

We have no sbbs man page (that I know of).
The SBBSROOT env var isn't used anywhere.
NotifyAccess is required for the (new to v3.20) systemd integration support
We can just use the AmbientCapbilities to set the bind capability now
Set the open file limit to something huge (10000 files should be enough)
Update the instructions/comments.
parent 7bca5c13
Branches
Tags
No related merge requests found
# Synchronet BBS startup file - Setup instructions # Synchronet BBS systemd 'unit configuration' file
# #
# 1. Modify the environment variables to match your SBBS setup # 1. Copy this file to the correct directory
# 2. Modify User and Group. If you run this as root you don't need # e.g. for Debian/Ubuntu Linux, that would be: /lib/systemd/system
# the ExecStartPre line. # 2. If necessary, modify the SBBSCTRL environment variable value to match your install
# 3. Modify the ExecStart and ExecStartPre paths to match your # 3. If necessary, modify the User and Group values to match your install
# Synchronet setup. # 4. If necessary, modify the path in the ExecStart value to match your install
# 4. Place this file in the correct location. For Ubuntu 16.04 # 5. Enable the BBS service by running "systemctl enable sbbs"
# you should place it in /lib/systemd/system # 6. To run the BBS service without rebooting, run "systemctl start sbbs"
# 5. Enable the service with "systemctl enable sbbs"
# 6. To run the service without restarting "systemctl start sbbs"
[Unit] [Unit]
Description=Synchronet BBS service Description=Synchronet BBS
Documentation=man:sbbs Documentation=http://wiki.synchro.net/
After=syslog.target network.target After=syslog.target network.target
[Service] [Service]
Type=forking Type=forking
Environment=SBBSROOT=/sbbs SBBSCTRL=/sbbs/ctrl NotifyAccess=main
Environment=SBBSCTRL=/sbbs/ctrl
User=sbbs User=sbbs
Group=sbbs Group=sbbs
PermissionsStartOnly=true AmbientCapabilities=CAP_NET_BIND_SERVICE
# ExecStartPre=/sbin/setcap 'cap_net_bind_service=+ep' /sbbs/src/sbbs3/gcc.linux.*.exe.*/sbbs
ExecStart=/sbbs/exec/sbbs d ExecStart=/sbbs/exec/sbbs d
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure
RestartSec=30 RestartSec=30
LimitNOFILE=10000
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment