add service file
commit
b90fde9ef3
@ -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
|
Loading…
Reference in New Issue