blob: 7364c35fa2fe94ca2ecd9dfdcb16125098df3373 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
[Unit]
Description=WangYunChuan Service for instance %i
Documentation=https://wangyunchuan.com
Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=500
StartLimitBurst=5
[Service]
Type=simple
User=wangyunchuan
Group=wangyunchuan
Environment=WYC_INSTANCE=%i
EnvironmentFile=/etc/wangyunchuan/%i_token
PrivateTmp=yes
ProtectSystem=no
ProtectHome=yes
ExecStart=/usr/bin/wyc -token ${WYC_TOKEN} -run
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=wangyunchuan-%i
[Install]
WantedBy=multi-user.target
|