40 lines
818 B
Desktop File
Executable File
40 lines
818 B
Desktop File
Executable File
[Unit]
|
|
Description=Imperial Command Center - Home Assistant Kiosk Dashboard
|
|
Documentation=https://github.com/your-repo/imperial-command-center
|
|
After=graphical.target network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=kiosk
|
|
Group=kiosk
|
|
|
|
# Environment
|
|
Environment=DISPLAY=:0
|
|
Environment=XAUTHORITY=/home/kiosk/.Xauthority
|
|
Environment=NODE_ENV=production
|
|
|
|
# Working directory (contains .env file)
|
|
WorkingDirectory=/opt/imperial-command-center
|
|
|
|
# Start command
|
|
ExecStart=/opt/imperial-command-center/imperial-command-center.AppImage --no-sandbox
|
|
|
|
# Restart policy
|
|
Restart=always
|
|
RestartSec=5
|
|
StartLimitInterval=60
|
|
StartLimitBurst=3
|
|
|
|
# Security settings
|
|
NoNewPrivileges=false
|
|
ProtectSystem=false
|
|
ProtectHome=false
|
|
|
|
# Resource limits
|
|
MemoryMax=2G
|
|
CPUQuota=80%
|
|
|
|
[Install]
|
|
WantedBy=graphical.target
|