#2199 koji-gc: add systemd unit files
Merged 2 years ago by tkopecek. Opened 2 years ago by ktdreyer.
ktdreyer/koji koji-gc-systemd  into  master

file modified
+2
@@ -594,6 +594,8 @@ 

  %files utils

  %{_sbindir}/kojira

  %if %{use_systemd}

+ %{_unitdir}/koji-gc.service

+ %{_unitdir}/koji-gc.timer

  %{_unitdir}/kojira.service

  %else

  %{_initrddir}/kojira

file modified
+2
@@ -32,6 +32,8 @@ 

  install-systemd: _install

  	mkdir -p $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)

  	install -p -m 644 kojira.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)

+ 	install -p -m 644 koji-gc.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)

+ 	install -p -m 644 koji-gc.timer $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)

  	install -p -m 644 koji-sweep-db.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)

  	install -p -m 644 koji-sweep-db.timer $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)

  

@@ -0,0 +1,7 @@ 

+ [Unit]

+ Description=Koji garbage collection

+ Documentation=https://docs.pagure.org/koji/utils/

+ 

+ [Service]

+ Type=oneshot

+ ExecStart=/usr/sbin/koji-gc --lock-file=/var/lock/koji-gc.lock --exit-on-lock

file added
+10
@@ -0,0 +1,10 @@ 

+ [Unit]

+ Description=Daily Koji garbage collection

+ Documentation=https://docs.pagure.org/koji/utils/

+ 

+ [Timer]

+ OnCalendar=daily

+ Persistent=true

+ 

+ [Install]

+ WantedBy=timers.target

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

rebased onto ecd4f39

2 years ago

Commit b19f352 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago

Metadata Update from @jcupova:
- Pull-request tagged with: testing-done

2 years ago