Hi all,
I'm facing a problem with my ARCH ARM with Raspb. pi
So i want to execute a .jar file on boot.
So i've created a service on /etc/systemd/system/ex.service:
[Unit]
Description=ex
[Service]
ExecStart=/usr/bin/sc.sh
[Install]
WantedBy=multi-user.target
and my script to run the jar file (sc.sh):
!/bin/sh -
cd /var/Share/
exec java -jar XbeeProject.jar
but, i can enable and start it with any problems, but actually it doesn't start. the systemctl status of ex.service is actually:
Loaded: loaded (/etc/systemd/system/ex.service; enabled)
Active: failed (Result: exit-code) since Thu 1970-01-01 01:00:06 BST; 43 years 2 months ago
Main PID: 109 (code=exited, status=2)
CGroup: name=systemd:/system/ex.service
i am desperating with this.
i've done this before. but now it doesn't work.
could someone help me?
excuse for my bad english!
