mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-08-05 05:45:22 +02:00
20 lines
474 B
SYSTEMD
20 lines
474 B
SYSTEMD
|
[Unit]
|
||
|
Description=Pandora service
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
User=_USER_
|
||
|
Group=_USER_
|
||
|
Type=forking
|
||
|
WorkingDirectory=/home/_USER_/pandora
|
||
|
Environment="PATH=/home/_USER_/.poetry/bin:/usr/bin"
|
||
|
Environment="PANDORA_HOME=/home/_USER_/pandora"
|
||
|
ExecStart=/bin/bash -c "exec poetry run start"
|
||
|
ExecStop=/bin/bash -c "exec poetry run stop"
|
||
|
StandardOutput=append:/var/log/pandora_message.log
|
||
|
StandardError=append:/var/log/pandora_error.log
|
||
|
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|