add system

This commit is contained in:
2025-06-14 00:50:22 +09:00
parent fd223290df
commit cef0675a88
3 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,22 @@
[Unit]
Description=ailog stream monitoring service
After=network.target
Wants=network.target
[Service]
Type=simple
User=syui
Group=syui
WorkingDirectory=/home/syui/git/log
ExecStart=/home/syui/.cargo/bin/ailog stream start my-blog
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
# Environment variables if needed
Environment=RUST_LOG=info
Environment=AILOG_DEBUG_ALL=1
[Install]
WantedBy=multi-user.target