Skip to content

Commit

Permalink
Update import-email-to-piler.service to include environment file and …
Browse files Browse the repository at this point in the history
…set working directory
  • Loading branch information
stephdl committed Apr 26, 2024
1 parent 9cdd2bd commit 88c2ccb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions imageroot/systemd/user/import-email-to-piler.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ After=piler-app.service
ConditionPathExists=!%S/state/sync2pilerdone

[Service]
Type=forking

EnvironmentFile=%S/state/environment
WorkingDirectory=%S/state
Restart=always
TimeoutStopSec=70
ExecStartPre=/usr/bin/bash -c "while [ -z "$MAIL_SERVER" ]; do echo '## Waiting the MAIL_SERVER is set' && sleep 5 ; done"
ExecStart=/usr/local/bin/runagent import-emails
Type=forking

[Install]
WantedBy=default.target

0 comments on commit 88c2ccb

Please sign in to comment.