• Systemd start script

    From Stephen Atkins@1:342/13 to All on Tue Feb 16 09:45:31 2016
    Hello everyone. It's been a couple of weeks and few reboots and things look to
    have stabilized now. I finally figured out how to get systemd .service scripts to work and thought I would post my mbse.service script for those that may need it in the future.

    Stephen

    ==Start mbse.service
    [Unit]
    Description=MBSE BBS
    After=syslog.target network.target

    [Service]
    Type=forking
    Environment="MBSE_ROOT=/opt/mbse"
    WorkingDirectory=/opt/mbse/
    PIDFile=/opt/mbse/var/run/mbtask
    ExecStart=/opt/mbse/bin/mbtask
    ExecReload=/bin/kill -HUP ${MAINPID}
    ExecStop=/bin/kill ${MAINPID}
    User=mbse
    Group=bbs
    #Restart=on-failure
    #RestartSec=10

    [Install]
    WantedBy=multi-user.target

    == end mbse.service


    ---
    The Bit Bucket BBS - telnet://bbs.thebitbucket.ca

    --- MBSE BBS v1.0.6 (GNU/Linux-x86_64)
    * Origin: The Bit Bucket BBS (1:342/13)