16 lines
456 B
Desktop File
16 lines
456 B
Desktop File
[Unit]
|
|
Description=trojan-web
|
|
Documentation=https://github.com/Jrohy/trojan
|
|
After=network.target network-online.target nss-lookup.target mysql.service mariadb.service mysqld.service docker.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
StandardError=journal
|
|
ExecStart=/bin/sh -c '/usr/local/bin/trojan web --host "${WEB_HOST:-127.0.0.1}" --port "${WEB_PORT:-8081}"'
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=on-failure
|
|
RestartSec=3s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|