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