add service files
This commit is contained in:
parent
fdce55cf3b
commit
95c96b3894
|
@ -29,8 +29,6 @@ transfer:
|
|||
tsdb:
|
||||
http: 0.0.0.0:8010
|
||||
rpc: 0.0.0.0:8011
|
||||
addresses:
|
||||
- 127.0.0.1
|
||||
|
||||
index:
|
||||
http: 0.0.0.0:8012
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=n9e agent
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# modify when deploy in prod env
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=simple
|
||||
Environment="GIN_MODE=release"
|
||||
ExecStart=/home/n9e/n9e-agent
|
||||
WorkingDirectory=/home/n9e
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=n9e ams
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# modify when deploy in prod env
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=simple
|
||||
Environment="GIN_MODE=release"
|
||||
ExecStart=/home/n9e/n9e-ams
|
||||
WorkingDirectory=/home/n9e
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=n9e index
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# modify when deploy in prod env
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=simple
|
||||
Environment="GIN_MODE=release"
|
||||
ExecStart=/home/n9e/n9e-index
|
||||
WorkingDirectory=/home/n9e
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=n9e job
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# modify when deploy in prod env
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=simple
|
||||
Environment="GIN_MODE=release"
|
||||
ExecStart=/home/n9e/n9e-job
|
||||
WorkingDirectory=/home/n9e
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=n9e judge
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# modify when deploy in prod env
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=simple
|
||||
Environment="GIN_MODE=release"
|
||||
ExecStart=/home/n9e/n9e-judge
|
||||
WorkingDirectory=/home/n9e
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=n9e monapi
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# modify when deploy in prod env
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=simple
|
||||
Environment="GIN_MODE=release"
|
||||
ExecStart=/home/n9e/n9e-monapi
|
||||
WorkingDirectory=/home/n9e
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=n9e rdb
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# modify when deploy in prod env
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=simple
|
||||
Environment="GIN_MODE=release"
|
||||
ExecStart=/home/n9e/n9e-rdb
|
||||
WorkingDirectory=/home/n9e
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=n9e transfer
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# modify when deploy in prod env
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=simple
|
||||
Environment="GIN_MODE=release"
|
||||
ExecStart=/home/n9e/n9e-transfer
|
||||
WorkingDirectory=/home/n9e
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=n9e tsdb
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
# modify when deploy in prod env
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
Type=simple
|
||||
Environment="GIN_MODE=release"
|
||||
ExecStart=/home/n9e/n9e-tsdb
|
||||
WorkingDirectory=/home/n9e
|
||||
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
StartLimitInterval=0
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue