Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2498

General discussion • Trying to create a .service file

$
0
0
I am trying to add a service file to /etc/systemd/system.

The service is called X10-lora.service.
The service description is:

Code:

[Unit]Description=Run_X10_Lora_at_rebootAfter=multi-user.target[Service]Type=idleExecStart=/usr/bin/python /home/pi/Logs/Software/X10_publish_v3.pyRestart=always[Install]WantedBy=multi-user.target
When I come to the command:

Code:

 sudo chmod 644 etc/systemd/service/X10-lora.service
I always get the reply:

Code:

chmod: cannot access 'etc/systemd/service/X10-lora.service': No such file or directory
But the file is present!

What am I doing wrong? (I expect this will be embarassing!)

Statistics: Posted by Capell — Mon Mar 31, 2025 2:56 pm



Viewing all articles
Browse latest Browse all 2498

Trending Articles