Fix dir structure

Signed-off-by: Drasko Draskovic <drasko.draskovic@gmail.com>
This commit is contained in:
Drasko Draskovic
2023-10-19 17:34:38 +02:00
parent 96e3c48fcb
commit 63d8035e46
3 changed files with 0 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
[Unit]
Description=Cocos AI agent
After=network.target
[Service]
StandardOutput=file:/var/log/cocos/agent.stdout
StandardError=file:/var/log/cocos/agent.stderr
Environment=NETWORK_INTERFACE=enp0s3
Environment=AGENT_GRPC_HOST=10.0.2.15
Environment=AGENT_GRPC_PORT=7002
Environment=AGENT_LOG_LEVEL=info
ExecStartPre=ip link set dev $NETWORK_INTERFACE up
ExecStartPre=dhclient $NETWORK_INTERFACE
ExecStartPre=mkdir -p /var/log/cocos
ExecStart=/cocos/agent
[Install]
WantedBy=default.target