Skip to content

Commit

Permalink
Update import-email-to-piler.service to use --no-block option when st…
Browse files Browse the repository at this point in the history
…arting the service
  • Loading branch information
stephdl committed Apr 29, 2024
1 parent 618b6ac commit ac1b519
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ This can be done by adapting the `/etc/postfix/transport/`
Previous emails are sent automatically one time to piler after the first configuration, but if you want to launch manually the synchronisation, you can trigger this service in the terminal:

runagent -m piler1
systemctl --user start import-email-to-piler.service
systemctl --user start --no-block import-email-to-piler.service

Piler should understand and manage about duplicated emails.
2 changes: 1 addition & 1 deletion imageroot/actions/configure-module/91import-email
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ if [[ -f 'sync2pilerdone' ]]; then
echo "## sync2pilerdone file is found, mail already migrated, exiting"
exit 0
fi
systemctl --user start import-email-to-piler.service
systemctl --user start --no-block import-email-to-piler.service
4 changes: 2 additions & 2 deletions imageroot/systemd/user/import-email-to-piler.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ Description= import emails to piler

[Service]
ExecStart=/usr/local/bin/runagent import-emails
ExectStartPost=/usr/bin/touch sync2pilerdone
Type=simple
ExecStart=/usr/bin/touch sync2pilerdone
Type=oneshot

0 comments on commit ac1b519

Please sign in to comment.