Skip to content

Commit

Permalink
feat: Add stdout / stderr log file definition
Browse files Browse the repository at this point in the history
  • Loading branch information
DPS0340 committed Jun 25, 2024
1 parent ed31f32 commit 4f23658
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/executor/initializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ Restart=on-failure
ExecStart=/usr/bin/rrdb run
RemainAfterExit=on
User=root
StandardOutput=file:/var/log/rrdb.stdout.log
StandardError=file:/var/log/rrdb.stderr.log
[Install]
WantedBy=multi-user.target"#;
Expand All @@ -126,7 +128,9 @@ WantedBy=multi-user.target"#;
<key>RunAtLoad</key>
<true/>
<key>StandardOutPath</key>
<string>/var/log/rrdb.log</string>
<string>/var/log/rrdb.stdout.log</string>
<key>StandardErrorPath</key>
<string>/var/log/rrdb.stderr.log</string>
</dict>
</plist>"#;

Expand Down

0 comments on commit 4f23658

Please sign in to comment.