maharajan23
Newbie level 1
- Joined
- Mar 12, 2014
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 11
I am trying to make my bar code comparison application run at start time without asking for user name and password in Angstrom Linux in Beaglebone Black using following help.
But i am getting following error :
What should i do now.
Creating a service to startup at BeagleBone Black boot time:
Create a shell script such as /usr/bin/myFancyBash.sh:
#!/bin/bash
# this could be any runnable code or shell script, really
/usr/bin/myFancyPython.py
Note that the first line is critical.
Create a service file in /lib/systemd/myFancy.service such as:
[Unit]
Description=My Fancy Service
[Service]
Type=simple
ExecStart=/usr/bin/myFancyBash.sh
[Install]
WantedBy=multi-user.target
Create a symbolic link between your script and a special location under /etc:
ln -s /lib/systemd/myFancy.service /etc/systemd/system/myFancy.service
Make systemd aware of your new service
systemctl daemon-reload
systemctl enable myFancy.service
systemctl start myFancy.service
Reboot the BeagleBone Black to see your script in action
If you wish to control the service at runtime, you can use systemctl commands:
systemctl status myFancy.service
systemctl stop myFancy.service
systemctl start myFancy.service
systemctl disable myFancy.service
But i am getting following error :
login as: root
root@192.168.1.2's password:
root@dhcppc0:~# systemctl status p2.service
p2.service - bar code match
Loaded: loaded (/lib/systemd/system/p2.service; enabled)
Active: failed (Result: exit-code) since Sat 2000-01-01 06:00:06 BDT; 11min ago
Process: 130 ExecStart=/usr/bin/p1.sh (code=exited, status=203/EXEC)
CGroup: name=systemd:/system/p2.service
root@dhcppc0:~#
What should i do now.