mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-27 16:14:21 +00:00
63a6d40457
* Update ExecReload command in x-ui.service.debian * fix(systemd): use absolute path in ExecReload for arch and rhel units systemd requires absolute executable paths; kill -USR1 $MAINPID fails with 'Executable path is not absolute'. Matches the debian unit fix. --------- Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
18 lines
346 B
Plaintext
18 lines
346 B
Plaintext
[Unit]
|
|
Description=x-ui Service
|
|
After=network.target
|
|
Wants=network.target
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/conf.d/x-ui
|
|
Environment="XRAY_VMESS_AEAD_FORCED=false"
|
|
Type=simple
|
|
WorkingDirectory=/usr/local/x-ui/
|
|
ExecStart=/usr/local/x-ui/x-ui
|
|
ExecReload=/bin/kill -USR1 $MAINPID
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|