commit b90fde9ef3e964334d12a52b27f0139977d85e50 Author: InkerBot Date: Mon Jun 17 02:27:29 2024 +0800 add service file diff --git a/teamcityagent.service b/teamcityagent.service new file mode 100644 index 0000000..6759edb --- /dev/null +++ b/teamcityagent.service @@ -0,0 +1,13 @@ +[Unit] +Description=TeamCity Build Agent +After=network.target +[Service] +Type=oneshot +User=root +Group=root +ExecStart=/root/agent/bin/agent.sh start +ExecStop=-/root/agent/bin/agent.sh stop +RemainAfterExit=yes +SuccessExitStatus=0 143 +[Install] +WantedBy=default.target