OpenBCM V1.07b11 (WIN32)

Packet Radio Mailbox

DBO595

[LAU JN59RM]

 Login: GAST





  

NL2ZTM > BPQ32    19.10.15 05:19l 270 Lines 9663 Bytes #999 (0) @ WW
BID : 1575_NL3ZTM
Read: GAST
Subj: Fwd: Re: [BPQ32] Installing TNC-PI and pilinbpq on JESSIE
Path: DBO595<DBO763<DBX214<CB0ESN<FRB001<NL3WAM<NL3ZZE<NL3ZTM
Sent: 151018/0925Z 1575@NL3ZTM.NL3ZTM.ZH.NLD.EU BPQ1.4.64




-------- Doorgestuurd bericht --------
Onderwerp: 	Re: [BPQ32] Installing TNC-PI and pilinbpq on JESSIE
Datum: 	Wed, 14 Oct 2015 12:43:55 -0400
Van: 	Tadd Torborg tadd@mac.com [BPQ32] <BPQ32@yahoogroups.com>
Antwoord-naar: 	BPQ32@yahoogroups.com
Aan: 	bpq group <BPQ32@yahoogroups.com>



I found a way to make the background execution work.  Here is a trivial 
demo to show automatic restart and start after boot.


Information came from
https://wiki.archlinux.org/index.php/Systemd
and RaTTus on the raspberrypi.org <http://raspberrypi.org>   forums


I created a file */etc/systemd/system/tadd.service*
-rw-r--r-- 1 root root 158 Oct 14 16:18 tadd.service

The contents of the file are:
[Unit]
Description=Tadd script test

[Service]
ExecStart=/usr/local/etc/background_test.sh
Restart=always
RestartSec=2

[Install]
WantedBy=multi-user.target


Now the program pointed to by ExecStart=  will be run at boot time, and 
2 seconds after that program quits it will be started again.

Once this file is created you need to do these commands
*sudo systemctl daemon-reload*
*sudo systemctl enable tadd.service*
*sudo systemctl start tadd.service*

The script file I executed is
-rwxr-xr-x 1 root staff 54 Oct 14 16:19 background_test.sh

#!//bin/sh

uptime >> /usr/local/etc/test.log


*—————————————————————————————————*
*—————————————————————————————————*
*—————————————————————————————————*
*
*
After starting the service I used sudo reboot  to reboot the Raspberry 
PI.  Here is the log file:

pi@raspberrypi ~ $ cd /usr/local/etc
pi@raspberrypi/usr/local/etc $cat test.log
  16:32:01 up 11 min,  3 users,  load average: 0.01, 0.06, 0.05
  16:32:03 up 11 min,  3 users,  load average: 0.01, 0.06, 0.05
  16:32:05 up 11 min,  3 users,  load average: 0.01, 0.06, 0.05
  16:32:07 up 11 min,  3 users,  load average: 0.01, 0.06, 0.05
  16:32:10 up 11 min,  3 users,  load average: 0.01, 0.06, 0.05
  16:32:12 up 11 min,  3 users,  load average: 0.01, 0.06, 0.05
  16:32:14 up 11 min,  3 users,  load average: 0.01, 0.06, 0.05
  16:32:16 up 11 min,  3 users,  load average: 0.01, 0.06, 0.05
  16:32:22 up 0 min,  0 users,  load average: 0.24, 0.05, 0.02
  16:32:25 up 0 min,  0 users,  load average: 0.24, 0.05, 0.02
  16:32:27 up 0 min,  1 user,  load average: 0.30, 0.07, 0.02
  16:32:29 up 0 min,  2 users,  load average: 0.30, 0.07, 0.02
  16:32:32 up 0 min,  2 users,  load average: 0.44, 0.10, 0.03
  16:32:34 up 0 min,  2 users,  load average: 0.44, 0.10, 0.03
  16:32:36 up 0 min,  3 users,  load average: 0.48, 0.11, 0.04
  16:32:38 up 0 min,  3 users,  load average: 0.48, 0.11, 0.04
  16:32:58 up 0 min,  3 users,  load average: 0.48, 0.11, 0.04
  16:33:00 up 0 min,  3 users,  load average: 0.52, 0.13, 0.04
pi@raspberrypi/usr/local/etc $


Sometime later today I hope I’ll try to continue the install of the 
packet node software and support and see how far we get.  I have to 
change the way my scripts work to use the status request mechanism in 
*systemctl* instead of *grep*ping in*/etc/inittab* like I used to, in 
order to know if the node software is set to automatically run.  Also 
the commands to start and stop the background operation need changing 
etc etc etc.   or is it usr usr usr?   I don’t know!  The world keeps 
changing!!!  haha.

Anybody know how to start FDSK   on all of the SD media?  It used to be 
*shutdown -rF *    but that doesn’t work in JESSIE

*Tadd / KA2DEW*
*tadd@mac.com <mailto:tadd@mac.com>*
*Raleigh NC  FM05pv*
*
*
*“Packet networking over ham radio": 
http://tarpn.net/t/packet_radio_networking.html*
*
*


> On Oct 14, 2015, at 11:44 AM, Tadd Torborg tadd@mac.com 
> <mailto:tadd@mac.com> [BPQ32] <BPQ32@yahoogroups.com 
> <mailto:BPQ32@yahoogroups.com>> wrote:
>
> John,
>
>   Thanks for the reply.  I’m trying to figure this stuff out.   I 
> couldn’t get my install scripts to get far enough to start linbpq so I 
> tried it with a script.  Was this doomed to fail?  Looking at your email.
>
>> In directory /etc/init rename tty2.conf to tty2.save
>>
>   I couldn’t find a*tty2.conf*and nothing that looked like that 
> in*/etc/init*
>
> I did verify that console messages to serial can be turned off in 
> raspi-config.
>
> Is there anything you have to do to get the system to register the new 
> bpq.conf?    I created a script file in /usr/local/etc, made it +x and 
> created by root.  I just told it to do
> uptime >> /usr/local/etc/test.log     and then sleep for 20.    It 
> didn’t seem to start.  I tried rebooting to see if that would do it. 
>  Nothing.    Originally I tried to make the script run aplay but then 
> I decided that was too complicated so I went to echoing “uptimeφ 
> output.  That didn’t work either.
>
> Just to make sure my new conf has the right permissions, I compared it 
> to ssh.conf
>
> pi@raspberrypi/etc/init $ls ssh.conf -lrat
> -rw-r--r-- 1 root root 641 Mar 22  2015 ssh.conf
> ppi@raspberrypi /etc/init $ ls tadd* -lrat
> -rw-r--r-- 1 root root 103 Oct 14 14:34 tadd.conf
> i@raspberrypi/etc/init $cat tadd.conf
> #
> start on runlevel [2345]
> stop on runlevel [12345]
> respawn
> exec "/usr/local/etc/background_test.sh"
>
>
> pi@raspberrypi/etc/init $cd /usr/local/etc
> pi@raspberrypi/usr/local/etc $ls -lrat
> total 24
> drwxrwsr-x 10 root staff 4096 Jan  1  1970..
> -rw-r--r-- 1 root staff 8620 Oct 13 20:35spam.wav
> -rwxr-xr-x 1 root staff   43 Oct 14 14:44background_test.sh
> drwxrwsr-x 2 root staff 4096 Oct 14 14:44.
> pi@raspberrypi/usr/local/etc $cat background_test.sh
> uptime >> /usr/local/etc/test.log
> sleep 20
> pi@raspberrypi/usr/local/etc $
>
>
> I’ll search the googles and see if I can find anything.
>
> found a few things
> https://blog.sleeplessbeastie.eu/2015/04/27/how-to-manage-system-services-on-debian-jessie/
>
> This showed places to start stop and list services but the list does 
> not match what is in /etc/init, and my conf wasn’t in the list.
>
> There is something called*upstart*that uses the files in /etc/init
> I looked up upstart
> http://www.linux.com/learn/tutorials/404619-manage-system-startup-and-boot-processes-on-linux-with-upstart
>
> That said to use initctl to get a list of startup processes.  initctl 
> doesn’t seem to exist as a command in the Raspbian 8 JESSIE distribution.
>
> https://wiki.archlinux.org/index.php/Systemd
>
> While interesting, this document doesn’t seem to exactly match the 
> Raspberry PI Raspbian 8 JESSIE  distribution.
> # systemctl edit/unit/
> got an error message “Unknown operation ‘edit’.  However.. this is 
> closer. At least the document described things which DID match JESSIE.
>
> … The searching will go on,,  however I have to make some money and 
> get back to this later.
>
>     Tadd
>
>
> *Tadd / KA2DEW*
> *tadd@mac.com <mailto:tadd@mac.com>*
> *Raleigh NC  FM05pv*
> *
> *
> *“Packet networking over ham radio": 
> http://tarpn.net/t/packet_radio_networking.html*
> *
> *
>
>
>> On Oct 13, 2015, at 6:29 PM, 'John Wiseman'john.wiseman@cantab.net 
>> <mailto:john.wiseman@cantab.net>[BPQ32] <BPQ32@yahoogroups.com 
>> <mailto:BPQ32@yahoogroups.com>> wrote:
>>
>>
>> Tadd,
>> raspi-config now has an option to disable the getty on the serial 
>> port, but I don't know if it is there in Jessie.
>> With the new Kernels i2c is also enabled with reaspi-config.
>> This works to start linbpq for some systems that don't use /etc/inittab
>>
>> Create a filebpq.confin directory/etc/init
>>
>>
>>         /etc/init/bpq.conf
>>
>>
>> #
>> start on runlevel [2345]
>> stop on runlevel [!2345]
>> respawn
>> exec "/home/pi/linbpq/runbpq" >/dev/tty2
>>
>> In directory /etc/init renametty2.conf to tty2.save
>>
>> 73, John
>
>

__._,_.___
------------------------------------------------------------------------
Posted by: Tadd Torborg <tadd@mac.com>
------------------------------------------------------------------------
Reply via web post 
<https://groups.yahoo.com/neo/groups/BPQ32/conversations/messages/17924;_ylc=X3oDMTJyMGlhdDc0BF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARtc2dJZAMxNzkyNARzZWMDZnRyBHNsawNycGx5BHN0aW1lAzE0NDQ4NDEwNjA-?act=reply&messageNum=17924> 
	• 	Reply to sender 
<mailto:tadd@mac.com?subject=Re%3A%20%5BBPQ32%5D%20Installing%20TNC-PI%20and%20pilinbpq%20on%20JESSIE> 
	• 	Reply to group 
<mailto:BPQ32@yahoogroups.com?subject=Re%3A%20%5BBPQ32%5D%20Installing%20TNC-PI%20and%20pilinbpq%20on%20JESSIE> 
	• 	Start a New Topic 
<https://groups.yahoo.com/neo/groups/BPQ32/conversations/newtopic;_ylc=X3oDMTJmanIxYjRwBF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARzZWMDZnRyBHNsawNudHBjBHN0aW1lAzE0NDQ4NDEwNjA-> 
	• 	Messages in this topic 
<https://groups.yahoo.com/neo/groups/BPQ32/conversations/topics/17916;_ylc=X3oDMTM3bHJpa2t2BF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARtc2dJZAMxNzkyNARzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzE0NDQ4NDEwNjAEdHBjSWQDMTc5MTY-> 
(7)

Visit Your Group 
<https://groups.yahoo.com/neo/groups/BPQ32/info;_ylc=X3oDMTJmNzNwMjhyBF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARzZWMDdnRsBHNsawN2Z2hwBHN0aW1lAzE0NDQ4NDEwNjA-> 


  * New Members
    <https://groups.yahoo.com/neo/groups/BPQ32/members/all;_ylc=X3oDMTJnZmptdXU1BF9TAzk3MzU5NzE0BGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARzZWMDdnRsBHNsawN2bWJycwRzdGltZQMxNDQ0ODQxMDYw>
    3

Yahoo! Groups 
<https://groups.yahoo.com/neo;_ylc=X3oDMTJlbXFocWozBF9TAzk3NDc2NTkwBGdycElkAzE1Njk5MTI3BGdycHNwSWQDMTcwNTA2MzEwOARzZWMDZnRyBHNsawNnZnAEc3RpbWUDMTQ0NDg0MTA2MA--> 

• Privacy <https://info.yahoo.com/privacy/us/yahoo/groups/details.html> 
• Unsubscribe 
<mailto:BPQ32-unsubscribe@yahoogroups.com?subject=Unsubscribe> • Terms 
of Use <https://info.yahoo.com/legal/us/yahoo/utos/terms/>

..

__,_._,___





Lese vorherige Mail | Lese naechste Mail


 20.03.2025 01:07:02lZurueck Nach oben