mirror of
https://github.com/bolucat/Archive.git
synced 2026-04-23 00:17:16 +08:00
18 lines
547 B
Plaintext
18 lines
547 B
Plaintext
[Unit]
|
|
Description=trojan
|
|
Documentation=man:trojan(1) https://trojan-gfw.github.io/trojan/config https://trojan-gfw.github.io/trojan/
|
|
After=network.target network-online.target nss-lookup.target mysql.service mariadb.service mysqld.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
StandardError=journal
|
|
User=nobody
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/trojan @CMAKE_INSTALL_FULL_SYSCONFDIR@/trojan/@CONFIG_NAME@.json
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=on-failure
|
|
RestartSec=1s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|