Files
HY2XS_flamy/package/systemd/hy2xs-admin.service
T

34 lines
773 B
Desktop File

[Unit]
Description=HY2XS admin
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=hy2xs-admin
Group=hy2xs-admin
SupplementaryGroups=systemd-journal
WorkingDirectory={{INSTALL_DIR}}
EnvironmentFile=/etc/hy2xs/hy2xs.env
Environment=GIN_MODE=release
Environment=HUI_DATA={{DATA_DIR}}/
Environment=HUI_LOG={{LOG_DIR}}
ExecStart={{INSTALL_DIR}}/hy2xs-admin -p {{UI_PORT}}
Restart=on-failure
RestartSec=5s
NoNewPrivileges=true
PrivateTmp=true
UMask=0077
ProtectHome=true
ProtectSystem=strict
ReadOnlyPaths=/etc/hysteria/config.yaml
ReadWritePaths={{DATA_DIR}} {{LOG_DIR}}
RestrictAddressFamilies=AF_INET AF_UNIX
SystemCallArchitectures=native
LockPersonality=true
CapabilityBoundingSet=
AmbientCapabilities=
[Install]
WantedBy=multi-user.target