Systemd bash script

Hello guys i need your help over here.

I wrote a little script which should start my server when it osmc is booting.

So the problem is its not working with systemd but if i execute manually its working fine.
Need the your eyes i cant solve the problem.

[Unit]
Description=wol deamon
After=syslog.target network-online.target
Before=multi-user.target mediacenter.service

[Service]
User=osmc
Group=osmc

Type=oneshot
ExecStart=/usr/bin/bash /home/osmc/wol.sh
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target

Check the unit is enabled
Check the status of the unit

Wow instant answer.

Do you mean
systemctl enable wol.service
if yes i did it

here is the status from the service

osmc@osmc:~$ systemctl status wol.service
* wol.service - wol deamon
   Loaded: loaded (/etc/systemd/system/wol.service; enabled)
   Active: activating (start) since Fri 2017-01-20 20:42:34 CET; 46s ago
 Main PID: 344 (wol.sh)
   CGroup: /system.slice/wol.service
           |-344 /bin/bash /home/osmc/wol.sh
           `-447 ping -c 1 192.168.222.5

it seems like its starting but its not working.

Some issues.

Your initial systemd unit seemed to show Python, now it shows bash.

Your status call shows /bin/bash but your unit shows /usr/bin/bash. Check you are calling the correct interpreter and check your path

yes the first one was the wrong one i tryed it first with a python script and it worked so i moved to the bash script which is the one for wol.

but its working now thank you for your tipps. it was a path error in the wol script itself and i deleted /usr/ from the service so its working now ty again.

the working service:

[Unit]
Description=wol deamon
After=syslog.target network-online.target
Before=multi-user.target mediacenter.service

[Service]
User=osmc
Group=osmc

Type=oneshot
ExecStart=/bin/bash /home/osmc/wol.sh
TimeoutStopSec=30

[Install]
WantedBy=multi-user.target

Great to hear