Task #160
Updated by Nawan 3 days ago
This is timer unit:
```systemd
[Unit]
Description=Run rake redmine:send_reminders daily
[Timer]
OnCalendar=daily
Persistent=true
[Install]
WantedBy=timers.target
```
And this is service unit to run:
```systemd
[Unit]
Description=Send reminder emails from Redmine
Wants=redmine-remainder.timer
[Service]
Type=oneshot
Environment=RAILS_ENV="production"
WorkingDirectory=/usr/share/redmine
ExecStart=/usr/bin/bundle exec rake redmine:send_reminders days=7
[Install]
WantedBy=multi-user.target
```
Back