ubopod / ubo_app

This repo contains code for Ubo system app to control Raspberry Pi utilities and Ubo based functionalities
6 stars 2 forks source link

set `/home/ubo/custom_services/` as default `UBO_SERVICES_PATH` #82

Closed zytegalaxy closed 5 months ago

zytegalaxy commented 5 months ago

When going through the hello-world tutorial, a suggestion was made to set Environment="UBO_SERVICES_PATH=/home/ubo/custom_services/" by default in the ubo-app.service. User can create symlink to other directories where their services are locacted that point to /home/ubo/custom_services/

Environment="UBO_SERVICES_PATH=/home/ubo/custom_services/
[Unit]
Description=Ubo App Service
Wants=dbus.service pipewire-pulse.service
[Service]
Type=simple
Environment="UBO_SERVICES_PATH=/home/ubo/custom_services/"
ExecStart=/opt/ubo/env/bin/ubo
WorkingDirectory=/opt/ubo
StandardOutput=inherit
StandardError=inherit
Restart=always
RestartPreventExitStatus=255
TimeoutStopSec=60s
KillMode=mixed
KillSignal=SIGTERM
[Install]
WantedBy=default.target