From b90fde9ef3e964334d12a52b27f0139977d85e50 Mon Sep 17 00:00:00 2001 From: InkerBot Date: Mon, 17 Jun 2024 02:27:29 +0800 Subject: [PATCH] add service file --- teamcityagent.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 teamcityagent.service 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