• Starting Mystic after reboot within LXDE

    From Thorsten Herb@21:4/104.1 to All on Saturday, March 31, 2018 15:45:00
    Hi All

    The last months I started Mystic "by hand" like sudo ./mis server (Raspbian). Has anybody a hint how to start Mystic automatically after reboot within an LXDE Terminal?

    Thanks in advance! :-)

    --
    ATB,
    Herbie

    --- WinPoint Beta 5 (359.1)
    * Origin: //Herbies-BBS II//herbies-bbs.ddns.net:23// (21:4/104.1)
  • From esc@21:2/142 to Thorsten Herb on Sunday, April 01, 2018 16:59:22
    The last months I started Mystic "by hand" like sudo ./mis server (Raspbian). Has anybody a hint how to start Mystic automatically after reboot within an LXDE Terminal?

    What distro are you using? I've written systemd init scripts using Debian Stretch which work very well for me. One difference is that I launch mis as a user and not with sudo.

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/32)
    * Origin: lo fidelity bbs (21:2/142)
  • From Thorsten Herb@21:4/104.1 to esc on Sunday, April 01, 2018 20:44:37
    //Hi esc, //

    you wrote in *FSX_MYS* to *Thorsten Herb* a message regarding *"Re: Starting Mystic after reboot within LXDE"* :

    The last months I started Mystic "by hand" like sudo ./mis server
    (Raspbian). Has anybody a hint how to start Mystic automatically after
    reboot within an LXDE Terminal?

    What distro are you using? I've written systemd init scripts using Debian Stretch which work very well for me. One difference is that I launch mis
    as a user and not with sudo.

    -+- Mystic BBS v1.12 A38 2018/01/01 (Linux/32)
    @ ORIGINAL: lo fidelity bbs (21:2/142)

    I am using Raspbian (Debian based, armv7l)

    In the meanwhile I found and tried

    ---cut---
    ##### Begining of Script
    #!/bin/bash
    # Ubuntu/Debian Linux system service run script (init file) for Mystic BBS
    #
    # This file normally goes in your /etc/init.d directory
    #
    # $Id: mbbs,v 1.0 2015/10/13 19:00:00 mbbs Exp $ ###############################################
    # MysticBBS Ubuntu/Debian startup script # ###############################################
    # by Dennis Ayala <dennis.ayala@gmail.com
    # You can edit these variabless according to your system requirements PATH=/bin:/sbin:/usr/bin:/usr/bin
    MYSTICBBS=/mystic
    DAEMON=mis
    # Command Line options (e.g. daemonize)
    OPTIONS="-d"
    export SHELL=/bin/bash
    # Uncomment if you want core files created with an unlimited size:
    #ulimit -c unlimited
    # DO NOT edit anything below this line unless you know what you doing
    case "$1" in
    start)
    echo -n "Starting MysticBBS BBS services... "
    RESULT=`pgrep ${DAEMON}`
    if [ "${RESULT:-null}" = null ];
    then
    start-stop-daemon -d $MYSTICBBS --quiet --start --user root --exec $DAEMON -- $OPTIONS
    else
    echo "[already running]"
    fi
    ;;
    stop)
    echo -n "Stopping Mystic BBS services... "
    RESULT=`pgrep ${DAEMON}`
    if [ "${RESULT:-null}" = null ];
    then
    echo "[not running]"
    else
    if start-stop-daemon -d $MYSTICBBS --quiet --stop --signal 9 --exec $DAEMON --retry 300
    then
    echo "[OK]"
    else
    echo "[timeout]"
    fi
    fi
    ;;
    restart)
    $0 stop
    $0 start
    ;;
    status)
    echo -n "MysticBBS BBS services status: "
    RESULT=`pgrep ${DAEMON}`
    if [ "${RESULT:-null}" = null ];
    then
    echo "[not running]"
    else
    echo "[running]"
    else
    echo "[running]"
    echo -n "PID(s): "
    pidof mis
    fi
    ;;
    *)
    echo "Usage: /etc/init.d/mysticbbs {start|stop|restart|status}"
    exit 1
    esac
    exit 0
    ###### End of Script

    ---cut---

    But got /etc/init.d/herbiesbbs: 22: /etc/init.d/herbiesbbs: Syntax error: word unexpected (expecting "in")
    herbiesbbs is the name of the file ;-)


    --
    ATB,
    Herbie

    --- WinPoint Beta 5 (359.1)
    * Origin: //Herbies-BBS II//herbies-bbs.ddns.net:23// (21:4/104.1)
  • From g00r00@21:1/108 to Thorsten Herb on Sunday, April 01, 2018 16:30:24
    -+- Mystic BBS v1.12 A38 2018/01/01 (Linux/32)
    @ ORIGINAL: lo fidelity bbs (21:2/142)

    I am using Raspbian (Debian based, armv7l)

    This script is an older script someone wrote that is not compatible with the current versions. It was written to be used with the old MIS server.

    --- Mystic BBS v1.12 A39 2018/04/01 (Windows/32)
    * Origin: Sector 7 [Mystic BBS WHQ] (21:1/108)
  • From Herbie@21:4/104 to g00r00 on Monday, April 02, 2018 10:25:20
    I am using Raspbian (Debian based, armv7l)
    This script is an older script someone wrote that is not compatible with the current versions. It was written to be used with the old MIS server.

    Hi g00r00,

    thank you for the reply! Ok, then I will search for another solution :-)

    ATB,
    Herbie

    --- Mystic BBS v1.12 A38 2018/01/01 (Raspberry Pi/32)
    * Origin: _-=Herbies-BBS II=-_ herbies-bbs.ddns.net (21:4/104)
  • From esc@21:2/142 to Thorsten Herb on Monday, April 02, 2018 16:59:03
    But got /etc/init.d/herbiesbbs: 22: /etc/init.d/herbiesbbs: Syntax
    error: word unexpected (expecting "in")
    herbiesbbs is the name of the file ;-)

    Can you confirm the version of raspbian you're using, and (more importantly) what init system it uses? I thought all debian flavors switched over to
    systemd a couple years ago. Before rabbit-holing on the script you shared, I think we should make sure we shouldn't be writing a systemd script instead.

    Furthermore, would you be willing to throw that script up on a pastebin to
    make it more readable and share the link here?

    Thanks!

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/32)
    * Origin: lo fidelity bbs (21:2/142)
  • From Herbie@21:4/104 to esc on Tuesday, April 03, 2018 12:48:56
    Hi

    Can you confirm the version of raspbian you're using, and (more importantly) what init system it uses? I
    Here are some information after running hostnamectl:
    Operating System: Raspbian
    GNU/Linux 9 (stretch)
    Kernel: Linux 4.14.30-v7+
    Architecture: arm

    stat /sbin/init gives following information:
    sbin/init -> /lib/systemd/systemd

    I uploaded th script to Pastebin https://pastebin.com/Pswzcmhd

    Hope the link works, thx for the support!

    ATB
    Herbie

    --- Mystic BBS v1.12 A38 2018/01/01 (Raspberry Pi/32)
    * Origin: _-=Herbies-BBS II=-_ herbies-bbs.ddns.net (21:4/104)
  • From esc@21:2/142 to Herbie on Tuesday, April 03, 2018 19:01:46
    Operating System: Raspbian
    GNU/Linux 9 (stretch)

    Cool, you're using systemd, same as me. I'll write my mystic on debian docs
    on github and share them with the community shortly...hopefully this weekend. :)

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/32)
    * Origin: lo fidelity bbs (21:2/142)
  • From Avon@21:1/101 to esc on Wednesday, April 04, 2018 08:40:06

    On 04/03/18, esc pondered and said...

    Operating System: Raspbian
    Cool, you're using systemd, same as me. I'll write my mystic on debian docs on github and share them with the community shortly...hopefully
    this weekend. :)

    If you're OK with the idea, I would like to add them to wiki.bbs.nz also

    --- Mystic BBS v1.12 A39 2018/04/01 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From esc@21:2/142 to Avon on Wednesday, April 04, 2018 02:44:15
    Cool, you're using systemd, same as me. I'll write my mystic on debia docs on github and share them with the community shortly...hopefully this weekend. :)

    If you're OK with the idea, I would like to add them to wiki.bbs.nz also

    Please do!

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/32)
    * Origin: lo fidelity bbs (21:2/142)
  • From Avon@21:1/101 to esc on Wednesday, April 04, 2018 16:01:02
    On 04/04/18, esc pondered and said...

    If you're OK with the idea, I would like to add them to wiki.bbs.nz a

    Please do!

    Can I hook you up with a login? Flick me a netmail with a preferred email and password and I'll set you up.

    --- Mystic BBS v1.12 A39 2018/04/01 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From esc@21:2/142 to Avon on Wednesday, April 04, 2018 21:06:12
    Can I hook you up with a login? Flick me a netmail with a preferred
    email and password and I'll set you up.

    I emailed you directly,we've corresponded before so you should see it hit
    your inbox before long. Happy to help!

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/32)
    * Origin: lo fidelity bbs (21:2/142)