mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-12-12 23:18:49 +00:00
- Changed the default configuration path for gateway.yaml to prioritize the ~/.debros/data/ directory, ensuring better organization and clarity. - Updated related functions to reflect the new path structure, maintaining backward compatibility with existing configurations. - Adjusted service execution commands to align with the new configuration path, enhancing deployment consistency.
30 lines
597 B
Desktop File
30 lines
597 B
Desktop File
[Unit]
|
|
Description=DeBros Gateway
|
|
After=debros-node-node.service
|
|
Wants=debros-node-node.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=debros
|
|
Group=debros
|
|
WorkingDirectory={{.HomeDir}}
|
|
Environment=HOME={{.HomeDir}}
|
|
ExecStart={{.HomeDir}}/bin/gateway --config {{.DebrosDir}}/data/gateway.yaml
|
|
Restart=always
|
|
RestartSec=5
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=debros-gateway
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
|
|
NoNewPrivileges=yes
|
|
PrivateTmp=yes
|
|
ProtectSystem=strict
|
|
ReadWritePaths={{.DebrosDir}}
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|