2021-06-08 20:45:26 +08:00
|
|
|
[Unit]
|
2021-08-26 23:09:52 +08:00
|
|
|
Description=AnyLink Server Service
|
|
|
|
Documentation=https://github.com/bjdgyc/anylink
|
|
|
|
After=network-online.target
|
2021-06-08 20:45:26 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=root
|
2021-08-26 23:09:52 +08:00
|
|
|
WorkingDirectory=/usr/local/anylink-deploy
|
2021-06-08 20:45:26 +08:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5s
|
2021-12-29 11:43:26 +08:00
|
|
|
ExecStart=/usr/local/anylink-deploy/anylink --conf=/usr/local/anylink-deploy/conf/server.toml
|
2021-08-26 23:09:52 +08:00
|
|
|
|
2023-04-26 22:17:10 +08:00
|
|
|
# systemd older than v236
|
|
|
|
# ExecStart=/bin/bash -c 'exec /usr/local/anylink-deploy/anylink --conf=/usr/local/anylink-deploy/conf/server.toml >> /usr/local/anylink-deploy/log/anylink.log 2>&1'
|
|
|
|
|
|
|
|
|
|
|
|
StandardOutput=file:/usr/local/anylink-deploy/log/anylink.log
|
|
|
|
StandardError=file:/usr/local/anylink-deploy/log/anylink.log
|
|
|
|
|
2021-06-08 20:45:26 +08:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|