systemd boot - HELP

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

systemd boot - HELP

Postby pmirra » Tue Mar 26, 2013 11:57 am

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!
pmirra
 
Posts: 2
Joined: Tue Mar 26, 2013 11:48 am

Re: systemd boot - HELP

Postby pmirra » Tue Mar 26, 2013 2:40 pm

problem solved!

i've writing my script under notepad++ on Windows.

and the Arch don't like it.

i was able to discover that, because , i have user /bin/bash,

with /bin/sh, the arch don't give any info

thank you anyaway
pmirra
 
Posts: 2
Joined: Tue Mar 26, 2013 11:48 am

Re: systemd boot - HELP

Postby pepedog » Tue Mar 26, 2013 2:42 pm

I just posted a reply, lost in cross, glad you solved
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 20 guests