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

Example systemd unit file used to start the Synchronet Web Server separate

... from the other Synchronet servers and services.

For advanced uses/debugging.
parent caafad2f
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
# Synchronet Web Server systemd 'unit configuration' file
#
# Only use if you want the web server to run as a separate process from the
# other BBS servers and services.
#
# You should have [web] AutoStart=false set in your ctrl/sbbs.in file
# or else, the web server will still start as part of your normal sbbs.service unit
# (and thus part of the same 'sbbs' instance as the other server), not what you want.
#
# 1. Copy or symlink this file to the correct directory
# e.g. for Debian/Ubuntu Linux, that would be: /lib/systemd/system
# 2. If necessary, modify the SBBSCTRL environment variable value to match your install
# 3. If necessary, modify the User and Group values to match your install
# 4. If necessary, modify the path in the ExecStart value to match your install
# Edits should be made using "sudo systemctl edit httpd", thus creating the file:
# /etc/systemd/system/httpd.service.d/override.conf
# 5. Enable the BBS service by running "sudo systemctl enable httpd"
# 6. To run the BBS service without rebooting, run "sudo systemctl start httpd"
#
# Tips:
# A. To query the status of the BBS service, run "systemctl status httpd"
# B. To browse the log output of the BBS service, run "journalctl -u httpd"
# C. To monitor the live log outupt of the BBS service, run "journalctl -f -u httpd"
[Unit]
Description=Synchronet Web Server
Documentation=http://wiki.synchro.net/
After=syslog.target network-online.target
[Service]
Type=forking
NotifyAccess=all
Environment=SBBSCTRL=/sbbs/ctrl
User=sbbs
Group=sbbs
AmbientCapabilities=CAP_NET_BIND_SERVICE
ExecStart=/sbbs/exec/sbbs d w!
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=30
LimitNOFILE=10000
[Install]
WantedBy=multi-user.target
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment