People,
This in on centos7.
I performed the configurations below as I wanted to use the [UNIX] block (below) from the sbbs.ini file.
The issue I had issue the <nd> parameters for the sbbs binary is: all the logs went straight into /var/log/messages and it didn't matter what I did with rsyslog I couldn't push them into another file /var/log/sbbs.log
So... if I was running as a daemon, the logs started feeding the /var/log/sbbs.log correctly. but something strange was happening as the process
was just
dying immediately.
sbbs.service
====
[Unit]
Description=Synchronet BBS
Documentation=man:sbbs
After=network.target
[Service]
Environment=SBBSROOT=/sbbs SBBSCTRL=/sbbs/ctrl
ExecStart=/sbbs/exec/sbbs d
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=30
User=bbs
Group=bbs
[Install]
WantedBy=multi-user.target
====
ctrl/sbbs.ini
====
[UNIX]
; User/group name to run as
; User=admin
; Group=wheel
User=bbs
Group=bbs
; Run in background:
Daemonize=False
; File to create/write-to with process identifier (when daemonized)
PidFile=/var/run/sbbs/sbbs.pid
; System log (syslog) facility to use (when daemonized)
; 1 = LOCAL1
; 2 = LOCAL2
; .
; .
; .
; S = Use standard facilities - be sure you understand the
; consequences of enabling this!
; man syslog.conf(5) for more information.
; Defaults to using the USER facility.
; LogFacility=User
LogFacility=1
; syslog identity to use (when daemonized)
LogIdent=synchronet
; LogIdent=sbbs
; Default file creation mask:
umask=077
===
/etc/rsyslog.d/sbbslog.conf
local1.* /var/log/sbbs.log
=====
/var/log/sbbs.log
====
May 2 18:55:39 34819 synchronet: term Telnet Server listening on socket 185.5.52.214 port 2323
May 2 18:55:39 34819 synchronet: term RLogin Server listening on socket 127.0.0.1 port 5130
May 2 18:55:39 34819 synchronet: stat Loading configuration files from /sbbs/ctrl
May 2 18:55:39 34819 synchronet: stat Listening on /sbbs/ctrl/status.sock
May 2 18:55:39 34819 synchronet: Got signal (15)
May 2 18:55:39 34819 synchronet: Got quit signal (15)
May 2 18:55:39 34819 synchronet: term SSH Server listening on socket 185.5.52.214 port 2424
May 2 18:55:39 34819 synchronet: evnt BBS Events thread started
May 2 18:55:39 34819 synchronet: term Node 1 local spy using socket localspy1.sock
May 2 18:55:39 34819 synchronet: term Node 2 local spy using socket localspy2.sock
May 2 18:55:39 34819 synchronet: term Node 3 local spy using socket localspy3.sock
May 2 18:55:39 34819 synchronet: term Node 4 local spy using socket localspy4.sock
May 2 18:55:39 34819 synchronet: term Node 5 local spy using socket localspy5.sock
May 2 18:55:39 34819 synchronet: term Node 6 local spy using socket localspy6.sock
May 2 18:55:39 34819 synchronet: term Node 7 local spy using socket localspy7.sock
May 2 18:55:39 34819 synchronet: term Node 8 local spy using socket localspy8.sock
May 2 18:55:39 34819 synchronet: term Node 9 local spy using socket localspy9.sock
====
And it dies after a few minutes..
Suggestions?
Thanks!
RainManHood<---
---
þ Synchronet þ UNICYBER BBS -- bbs.unicyber.co.uk:2323::ssh bbs.unicyber.co.uk 2424
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)