add service.
This commit is contained in:
parent
7086b9f676
commit
0f0d7965c3
@ -70,6 +70,9 @@ function init() {
|
|||||||
scp ${build_path}/Libraries.tar.gz root@amass.fun:/opt/
|
scp ${build_path}/Libraries.tar.gz root@amass.fun:/opt/
|
||||||
ssh root@amass.fun "rm -fr /opt/Libraries; tar xvf /opt/Libraries.tar.gz -C /opt; rm -fr /opt/Libraries.tar.gz"
|
ssh root@amass.fun "rm -fr /opt/Libraries; tar xvf /opt/Libraries.tar.gz -C /opt; rm -fr /opt/Libraries.tar.gz"
|
||||||
|
|
||||||
|
# scp resources/older.service root@amass.fun:/etc/systemd/system/
|
||||||
|
# ssh root@amass.fun "systemctl daemon-reload; systemctl enable older; systemctl start older"
|
||||||
|
|
||||||
paths=(
|
paths=(
|
||||||
"/opt/Libraries/wt-4.11.1/lib"
|
"/opt/Libraries/wt-4.11.1/lib"
|
||||||
"/opt/Libraries/boost_1_86_0/lib"
|
"/opt/Libraries/boost_1_86_0/lib"
|
||||||
|
13
resources/older.service
Normal file
13
resources/older.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Http Server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/root/Server/HttpServer
|
||||||
|
WorkingDirectory=/root/Server
|
||||||
|
Restart=on-failure
|
||||||
|
User=root
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user