hololake-system-architecture/product-source/hololake-clean-desktop/server/enterprise-responsibility-gate/guanghu-hololake-enterprise-gate.service

22 lines
600 B
SYSTEMD
Raw Normal View History

[Unit]
Description=Guanghu HoloLake Enterprise Responsibility Device Gate
After=network-online.target guanghu-enterprise-identity.service
[Service]
Type=simple
User=lighthouse
Group=lighthouse
EnvironmentFile=/etc/guanghu/hololake-enterprise-gate.env
ExecStart=/usr/bin/python3 /opt/guanghu-hololake-enterprise-gate/current/service.py
Restart=on-failure
RestartSec=2
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadOnlyPaths=/etc/guanghu/enterprise-identity-registry.json
ReadWritePaths=/var/lib/guanghu-hololake-enterprise-gate
[Install]
WantedBy=multi-user.target