Update start script

I have update the start script for pi1lap/pi8lap. I have add start/stop/restart/status in it. The disadvantage of this script is if you for example make an adjustment in axport you have to stop and restart the whole system. Maybe divide into smaller parts.

Ok lets check the status.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

root@linux:/etc/ax25# ./ax-start status

Checking forfbb daemon:No,fbb isdown:(

Checking forax25d daemon:No,ax25d isdown:(

Checking fornetromd daemon:No,netromd isdown:(

Checking forax25rtd daemon:No,ax25rtd isdown:(

Checking forflexd daemon:No,flexd isdown:(

Checking formheardd daemon:No,mheardd isdown:(

Checking forax25ipd daemon:No,ax25ipd isdown:(

Checking forax25udp daemon:No,ax25udp isdown:(

Checking forlinuxnet node:No,linuxnet node isdown:(

Checking forjnos bbs:No,jnos isdown:(

Checking forkissattach:No,kissattach isdown:(

Checking forslattach:No,slattach isdown:(

Checking forkissnetd:No,kissnetd isdown:(

Checking formkiss:No,mkiss isdown:(

Checking forsocat:No,socat isdown:(

Checking forrstatrxd:No,rstatrxd isdown:(

root@linux:/etc/ax25#

Now let start the system.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

root@linux:/etc/ax25# ./ax-start start

Starting ax0

ax0 PI1LAP-196001284144.850Mhz1k2

AX.25port ax0 bound todevice ax0

start Done

Starting ax1

ax1 PI1LAP-296001284430.950Mhz9k6

AX.25port ax1 bound todevice ax1

start Done

Starting ax2

ax2 PI1LAP-3192001284Link local BBS pi8lap

AX.25port ax2 bound todevice ax2

start Done

Starting ax3

ax3 PI1LAP-6192001284Link local Dx pi1lap-4

AX.25port ax3 bound todevice ax3

start Done

Starting ax4

ax4 PI1LAP-8192002562AX25/udp via pi1lap-8

AX.25port ax4 bound todevice ax4

start Done

Starting ax5

ax5 PI1LAP-9192002562AX25/ip via pi1lap-9

AX.25port ax5 bound todevice ax5

start Done

Starting ax6

ax6 PD9Q-7192002562Link local Jnos p9q

AX.25port ax6 bound todevice ax6

start Done

Starting rose0

rose02040330113ROSE port330113

Rose port rose0 bound todevice rose0

start Done

Starting nr0

nr0 PI1LAP-5LAPURO236Uronode PI1LAP-15

NET/ROM port nr0 bound todevice nr0

start Done

Starting nr1

nr1 PI8LAP LAPBBS236Fbb BBS PI8LAP

NET/ROM port nr1 bound todevice nr1

start Done

Starting nr2

nr2 PI1LAP-4LAPDX236DxSpider PI1LAP-4

NET/ROM port nr2 bound todevice nr2

start Done

Starting nr3

nr3 PI1LAP-7LAPPAC236FPAC node PI1LAP-7

NET/ROM port nr3 bound todevice nr3

start Done

Starting ax25d daemon

start Done

Starting mheardd daemon

start Done

Starting ax25rtd daemon

start Done

Starting flexd daemon

FlexD started.

start Done

Starting netromd daemon

start Done

Starting FBB daemon

Checking fbb tree....Ok

Checking fbb configuration:

FBB options:-s-a

Running XFBB inbackground mode^Ctoabort

Starting XFBB(pwd=/usr/local/var/ax25/fbb)...

Now look at the status

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

root@linux:/etc/ax25# ./ax-start status

Checking forfbb daemon:Yes,fbb isup:)

Checking forax25d daemon:Yes,ax25d isup:)

Checking fornetromd daemon:Yes,netromd isup:)

Checking forax25rtd daemon:Yes,ax25rtd isup:)

Checking forflexd daemon:Yes,flexd isup:)

Checking formheardd daemon:Yes,mheardd isup:)

Checking forax25ipd daemon:Yes,ax25ipd isup:)

Checking forax25udp daemon:Yes,ax25udp isup:)

Checking forlinuxnet node:Yes,linuxnet isup:)

Checking forjnos bbs:Yes,jnos isup:)

Checking forkissattach:Yes,kissattach isup:)

Checking forslattach:Yes,slattach isup:)

Checking forkissnetd:Yes,kissnetd isup:)

Checking formkiss:No,mkiss isdown:(

Checking forsocat:Yes,socat isup:)

Checking forrstatrxd:Yes,rstatrxd isup:)

Here you see that “mkiss” is down. That is because I do not use “mkiss” at the moment.

Ok, now we will stop the system

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

root@linux:/etc/ax25# ./ax-start stop

Shutting down jnos bbs

Shutting down FBB script

Shutting down FBB daemon

Shutting down mheardd daemon

Shutting down netromd daemon

Shutting down ax25d daemon

Shutting down ax25ipd daemon

Shutting down ax25upd daemon

Shutting down rstatrxd daemon

Shutting down ax25rtd daemon

Shutting down mkiss daemon

mkiss:no process found

Shutting down kissattach daemon

Shutting down kissnetd daemon

Shutting down slattach daemon

Shutting down socat daemon

Shutting down beacon daemon

Shutting down flexd daemon

Shutting down netrom ports

Shutting down ax ports

Shutting down rose ports

stop Failed

Here you see that stopping has failed, this is because “mkiss” can not be stopped.