• sbbs.service systemctl centos

    From Rmh@1:103/705 to Digital Man on Mon Jun 11 16:18:44 2018
    Rob,

    I have spent some quality time perfecting the start up scripts for SBBS on Centos and this is one of the best I have put together if that's of any help to anyone or just for pure documentation:


    /etc/rsyslog.d/sbbslog.conf

    ---
    local1.* /var/log/sbbs.log
    :rawmsg,contains,"sbbs" -/var/log/sbbs.log
    ---

    /usr/lib/systemd/system/sbbs.service
    ----
    [Unit]
    Description=Synchronet BBS
    Documentation=man:sbbs
    After=network.target

    [Service]
    ExecStartPre=/bin/rm -f /var/run/sbbs/*
    EnvironmentFile=-/etc/default/sbbs
    ExecStartPre=/sbin/setcap 'cap_net_bind_service=+ep' /sbbs/src/sbbs3/gcc.linux.x64.exe.release/sbbs
    ExecStart=/sbbs/exec/sbbs nd
    PermissionsStartOnly=true
    ExecReload=/bin/kill -HUP $MAINPID
    Restart=on-failure
    RestartSec=30
    StandardOutput=syslog
    StandardError=syslog
    SyslogIdentifier=sbbs
    User=root
    Group=root

    [Install]
    WantedBy=multi-user.target
    ---

    Note: local1.* is a bit of a follow up to your current document.
    Also in the sbbs.ini (as you can imagine) I am using "sbbs" as identifier.

    Many 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)