mirror of
https://github.com/sky22333/hubproxy.git
synced 2026-08-05 03:24:57 +08:00
优化构建和打包
This commit is contained in:
19
packaging/hubproxy.service
Normal file
19
packaging/hubproxy.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=hubproxy
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
Environment=CONFIG_PATH=/etc/hubproxy/config.toml
|
||||
ExecStart=/usr/bin/hubproxy
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=hubproxy
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user