Project

General

Profile

RE: Auto run of application file (loaded in NAND Flash) » Result.txt

Vivek Ponnani, 01/30/2018 02:47 PM

 
1
ls -la /home/root/
2
--Result
3
root@mityomapl138:~# ls -la /home/root/
4
drwxr-sr-x    2 root     root             0 Jan  1 00:06 .
5
drwxr-sr-x    3 root     root             0 Jan  1  1970 ..
6
-rw-------    1 root     root            19 Jan  1 00:06 .ash_history
7
-rwxr-x---    1 root     root        520558 Jan  1  1970 DigitalDemodulatorARM
8
-rwxr-x---    1 root     root        784181 Jan  1  1970 DigitalDemodulatorDSP.out
9
-rw-r--r--    1 root     root             0 Jan  1 00:00 results.dat
10
-rwxr-xr-x    1 root     root           112 Jan  1  1970 start_application.sh
11

    
12

    
13
ls -la /etc/systemd/system/*
14

    
15
--Result
16
root@mityomapl138:~# ls -la /etc/systemd/system/*
17
-rw-rw-r--    1 1001     root           202 Jan  1  1970 /etc/systemd/system/AutoRun.service
18
lrwxrwxrwx    1 root     root            40 Jan  1 00:00 /etc/systemd/system/dbus-org.freedesktop.Avahi.service -> /lib/systemd/system/avahi-daemon.service
19

    
20
/etc/systemd/system/basic.target.wants:
21
drwxr-sr-x    2 root     root             0 Jan  1  1970 .
22
drwxrwsrwx    8 root     root             0 Jan  1 00:00 ..
23
lrwxrwxrwx    1 root     root            37 Jan  1  1970 timestamp.service -> /lib/systemd/system/timestamp.service
24

    
25
/etc/systemd/system/getty.target.wants:
26
drwx--S---    2 root     root             0 Jan  1  1970 .
27
drwxrwsrwx    8 root     root             0 Jan  1 00:00 ..
28
lrwxrwxrwx    1 root     root            34 Jan  1  1970 getty@tty1.service -> /lib/systemd/system/getty@.service
29
lrwxrwxrwx    1 root     root            41 Jan  1  1970 serial-getty@ttyS1.service -> /lib/systemd/system/serial-getty@.service
30

    
31
/etc/systemd/system/local-fs.target.wants:
32
drwxr-sr-x    2 root     root             0 Jan  1  1970 .
33
drwxrwsrwx    8 root     root             0 Jan  1 00:00 ..
34

    
35
/etc/systemd/system/multi-user.target.wants:
36
drwxr-sr-x    2 root     root             0 Jan  1 00:00 .
37
drwxrwsrwx    8 root     root             0 Jan  1 00:00 ..
38
lrwxrwxrwx    1 root     root            35 Jan  1  1970 AutoRun.service -> /etc/systemd/system/AutoRun.service
39
lrwxrwxrwx    1 root     root            40 Jan  1 00:00 avahi-daemon.service -> /lib/systemd/system/avahi-daemon.service
40
lrwxrwxrwx    1 root     root            39 Jan  1  1970 dropbearkey.service -> /lib/systemd/system/dropbearkey.service
41
lrwxrwxrwx    1 root     root            36 Jan  1  1970 remote-fs.target -> /lib/systemd/system/remote-fs.target
42

    
43
/etc/systemd/system/sockets.target.wants:
44
drwxr-sr-x    2 root     root             0 Jan  1 00:00 .
45
drwxrwsrwx    8 root     root             0 Jan  1 00:00 ..
46
lrwxrwxrwx    1 root     root            39 Jan  1 00:00 avahi-daemon.socket -> /lib/systemd/system/avahi-daemon.socket
47
lrwxrwxrwx    1 root     root            35 Jan  1  1970 dropbear.socket -> /lib/systemd/system/dropbear.socket
48

    
49
/etc/systemd/system/sysinit.target.wants:
50
drwxr-sr-x    2 root     root             0 Jan  1  1970 .
51
drwxrwsrwx    8 root     root             0 Jan  1 00:00 ..
52

    
53

    
54
# Test your service
55

    
56
systemctl start AutoRun.service
57
--Result
58
root@mityomapl138:~# systemctl start AutoRun.service
59
No response
60

    
61
systemctl status AutoRun.service
62
--Result
63
root@mityomapl138:~# systemctl status AutoRun.service
64
AutoRun.service - Application run
65
	  Loaded: loaded (/etc/systemd/system/AutoRun.service; enabled)
66
	  Active: active (running) since Sat, 01 Jan 2000 00:00:23 +0000; 9min ago
67
	Main PID: 1327 (start_applicati)
68
	  CGroup: name=systemd:/system/AutoRun.service
69
		  ├ 1327 /bin/sh /home/root/start_application.sh
70
		  └ 1577 ./DigitalDemodulatorARM DigitalDemodulatorDSP.out
71

    
72
root@mityomapl138:~# systemctl status AutoRun.service
73
AutoRun.service - Application run
74
	  Loaded: loaded (/etc/systemd/system/AutoRun.service; enabled)
75
	  Active: active (running) since Sat, 01 Jan 2000 00:00:23 +0000; 10min ago
76
	Main PID: 1327 (start_applicati)
77
	  CGroup: name=systemd:/system/AutoRun.service
78
		  ├ 1327 /bin/sh /home/root/start_application.sh
79
		  └ 1577 ./DigitalDemodulatorARM DigitalDemodulatorDSP.out
80

    
81
# The status command should report that the service is running.
82
# And enable the service so it starts on boot
83
systemctl enable AutoRun.service
84
--Result
85
No response
    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)