Phase 1: webhook handler + systemd unit + flock in dev-task
This commit is contained in:
16
webhook/agent-webhook.service
Normal file
16
webhook/agent-webhook.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=agent-coding-empire webhook handler
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/python3 /usr/local/bin/agent-webhook.py
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user