[nos-bbs] RPI Raspbian Stretch Jnos autostart and restart automatically
Jose Ng Lee
hp2cwb at gmail.com
Wed Jan 24 11:03:56 EST 2018
Thanks Tom.
It was easier in Raspbian Wheezy.
In inittab have 1 line:
#Start JNOS on bootup and respawn it should it crash
JN:2345:respawn:/jnos/startnos
and my startnos file:
#!/bin/sh
#
rm -f /jnos/spool/mqueue/*.lck 2>/dev/null
rm -f /jnos/spool/mail/*.lck 2>/dev/null
#
exec /jnos/jnos -d /jnos -v </dev/tty8>/dev/tty8 2>&1
#
I will have to figure out an easy way to do it in Stretch.
Thanks,
Jose / HP2AT
----- Original Message -----
From: "SP2L" <SP2L at sp2l.ampr.org>
To: <nos-bbs at tapr.org>
Sent: Wednesday, January 24, 2018 3:39 AM
Subject: Re: [nos-bbs] RPI Raspbian Stretch Jnos autostart and restart
automatically
> Jose.
>
>
> IMHO, there are _NO_ any special requirements
> in order to start JNOS under systemd OS'es.
>
> Easiest way is to put appropriate line somewhere
> in the script starting ax25 stack, after last
> command executed during boot up, for instance,
> between such lines:
>
> case "$1" in
> start )
> ...
> ...
> /start/your/jnos/here
>
> exit 0
>
>
> That's what I'am doing in my Debian-9.3 adm64.
>
> FTOH, if you need automatic restart, should JNOS crash,
> then crontab based script checking JNOS statewould do.
>
>
>
> Best regards.
> Tom - SP2L
>
> _______________________________________________
> nos-bbs mailing list
> nos-bbs at tapr.org
> http://www.tapr.org/mailman/listinfo/nos-bbs
>
More information about the nos-bbs
mailing list