remove other units
This commit is contained in:
parent
4904ffbe65
commit
ccd4f2e554
1 changed files with 0 additions and 66 deletions
|
@ -472,39 +472,6 @@ class mastodon (
|
|||
}
|
||||
#
|
||||
# Maintenance tasks
|
||||
$_timer_duplicates = @("EOT")
|
||||
[Unit]
|
||||
Description=Mastodon - Fix duplicates
|
||||
|
||||
[Timer]
|
||||
OnBootSec=24min
|
||||
OnUnitActiveSec=1d
|
||||
Unit=mastodon_fix_duplicates.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
| EOT
|
||||
|
||||
$_service_duplicates = @("EOT")
|
||||
[Service]
|
||||
Type=simple
|
||||
User=${mastodon_user}
|
||||
WorkingDirectory=${mastodon_home}/live
|
||||
Environment='RAILS_ENV=production' 'PATH=${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
||||
ExecStart=/opt/mastodon/live/bin/tootctl maintenance fix-duplicates
|
||||
|
||||
[Unit]
|
||||
OnFailure=status_email_antoniodelgado@%n.service
|
||||
| EOT
|
||||
|
||||
systemd::timer { 'mastodon_fix_duplicates.timer':
|
||||
ensure => present,
|
||||
timer_content => $_timer_duplicates,
|
||||
service_unit => 'mastodon_fix_duplicates.service',
|
||||
service_content => $_service_duplicates,
|
||||
active => true,
|
||||
enable => true,
|
||||
}
|
||||
$_timer_remove_media = @("EOT")
|
||||
[Unit]
|
||||
Description=Mastodon - Remove old media
|
||||
|
@ -538,39 +505,6 @@ class mastodon (
|
|||
active => true,
|
||||
enable => true,
|
||||
}
|
||||
$_timer_remove_orphans = @("EOT")
|
||||
[Unit]
|
||||
Description=Mastodon - Remove orphans
|
||||
|
||||
[Timer]
|
||||
OnBootSec=24min
|
||||
OnUnitActiveSec=1d
|
||||
Unit=mastodon_remove_orphans.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
| EOT
|
||||
|
||||
$_service_remove_orphans = @("EOT")
|
||||
[Service]
|
||||
Type=simple
|
||||
User=${mastodon_user}
|
||||
WorkingDirectory=${mastodon_home}/live
|
||||
Environment='RAILS_ENV=production' 'PATH=${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
||||
ExecStart=/opt/mastodon/live/bin/tootctl remove-orphans
|
||||
|
||||
[Unit]
|
||||
OnFailure=status_email_antoniodelgado@%n.service
|
||||
| EOT
|
||||
|
||||
systemd::timer { 'mastodon_remove_orphans.timer':
|
||||
ensure => present,
|
||||
timer_content => $_timer_remove_orphans,
|
||||
service_unit => 'mastodon_remove_orphans.service',
|
||||
service_content => $_service_remove_orphans,
|
||||
active => true,
|
||||
enable => true,
|
||||
}
|
||||
$_timer_remove_cards = @("EOT")
|
||||
[Unit]
|
||||
Description=Mastodon - Remove old media
|
||||
|
|
Loading…
Reference in a new issue