add service.
All checks were successful
Deploy Docker Images / Build dockerfile and Server deploy (push) Successful in 16s
Deploy / Build (push) Successful in 4m33s

This commit is contained in:
amass 2024-11-10 21:30:02 +08:00
parent 7086b9f676
commit 0f0d7965c3
2 changed files with 16 additions and 0 deletions

View File

@ -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
View 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