Initial commit: Electron + React touchscreen kiosk dashboard for Home Assistant
This commit is contained in:
39
imperial-command-center.service
Executable file
39
imperial-command-center.service
Executable file
@@ -0,0 +1,39 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user