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

Beginners • Re: Systemd Permission Denied on .venv directory

$
0
0
neilgl, thank you for your quick response!

Adding the user got me through to the next gate. I googled and found that in addition I needed to change the ExecStart to:

Code:

 ExecStart=/bin/bash 
The script get started but appears to have stopped immediately. That script runs continuously in a loop. Below is the service status.
* sensor_sample.service - Sampler
Loaded: loaded (/lib/systemd/system/sensor_sample.service; enabled; preset: enabled)
Active: inactive (dead) since Wed 2024-12-11 09:02:38 EST; 2min 25s ago
Duration: 21ms
Process: 1926 ExecStart=/bin/bash /home/randy/Documents/GitHub/smrtpype-sensor-sampler/.venv/bin/activate /home/randy/Documents/GitHub/smrtpype-sensor-sampler/sensor.py (cod>
Main PID: 1926 (code=exited, status=0/SUCCESS)
CPU: 8ms

Dec 11 09:02:38 raspberrypi systemd[1]: Started sensor_sample.service - Sampler.
Dec 11 09:02:38 raspberrypi systemd[1]: sensor_sample.service: Deactivated successfully.

Statistics: Posted by rlabidin — Wed Dec 11, 2024 2:21 pm



Viewing all articles
Browse latest Browse all 4981

Trending Articles