Skip to content

Commit

Permalink
Fix Systemd Service Log not evaluating date correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stablestud committed Nov 25, 2021
1 parent 55dc33e commit 86bb71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/systemd/default-service
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Requisite=network-online.target
[Service]
Type=oneshot
User=root
ExecStart=/bin/sh -c 'printf "\\nAdsorber v#@version@# #@frequency@# Systemd service @ %s\\n" "$(date)" >> "#@/some/path/to/logfile@#"; #@/some/path/adsorber update@# 2>&1 | tee -a "#@/some/path/to/logfile@#"'
ExecStart=/bin/sh -c 'printf "\\nAdsorber v#@version@# #@frequency@# Systemd service @ $(date)\\n" >> "#@/some/path/to/logfile@#"; #@/some/path/adsorber update@# 2>&1 | tee -a "#@/some/path/to/logfile@#"'
StandardInput=null
StandardOutput=journal
StandardError=journal
Expand Down

0 comments on commit 86bb71b

Please sign in to comment.