23 lines
486 B
Desktop File
23 lines
486 B
Desktop File
[Unit]
|
|
Description=ailog stream monitoring service
|
|
After=network.target
|
|
Wants=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=syui
|
|
WorkingDirectory=/home/syui/git/log
|
|
ExecStart=/home/syui/.cargo/bin/ailog stream start my-blog --ai-generate
|
|
ExecStop=/home/syui/.cargo/bin/ailog stream stop
|
|
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
|