23 lines
442 B
Desktop File
23 lines
442 B
Desktop File
[Unit]
|
|
Description=Linux Parental Control
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
WorkingDirectory=%INSTALL_DIR%
|
|
|
|
Environment="PATH=%INSTALL_DIR%/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin"
|
|
Environment="PARENTAL_CONTROL_ENFORCEMENT=1"
|
|
|
|
ExecStart=%INSTALL_DIR%/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8765
|
|
|
|
Restart=always
|
|
RestartSec=5
|
|
|
|
User=root
|
|
Group=root
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|