Skip to content

Commit

Permalink
Add lsc-sync timer template
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierba authored and davidcoutadeur committed Jun 27, 2024
1 parent 9820df2 commit 0f96344
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/install/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ override_dh_testdir:
cp -f lib/systemd/system/lsc-sync.service debian/
cp -f lib/systemd/system/lsc-sync.timer debian/
cp -f lib/systemd/system/[email protected] debian/
cp -f lib/systemd/system/[email protected] debian/
cp -f etc/default/lsc-async debian/lsc-async.default
cp -f etc/default/lsc-sync debian/lsc-sync.default
dh_testdir
Expand All @@ -25,6 +26,7 @@ override_dh_installsystemd:
dh_installsystemd --no-start --no-enable --no-stop-on-upgrade --name=lsc-sync
dh_installsystemd --no-start --no-enable --no-stop-on-upgrade --name=lsc-sync@
dh_installsystemd --name=lsc-sync.timer
dh_installsystemd [email protected]


override_dh_install:
Expand Down
5 changes: 5 additions & 0 deletions src/install/lib/systemd/system/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Unit]
Description=Periodically run LSC %I

[Timer]
OnCalendar= *:30:00
2 changes: 2 additions & 0 deletions src/install/lsc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ install -p -m 0644 lib/systemd/system/[email protected] %{buildroot}%{_unitdir}
install -p -m 0644 lib/systemd/system/lsc-sync.service %{buildroot}%{_unitdir}/
install -p -m 0644 lib/systemd/system/[email protected] %{buildroot}%{_unitdir}/
install -p -m 0644 lib/systemd/system/lsc-sync.timer %{buildroot}%{_unitdir}/
install -p -m 0644 lib/systemd/system/[email protected] %{buildroot}%{_unitdir}/
## man
cp -a doc/man/man1/* %{buildroot}%{_mandir}/man1/
cp -a doc/man/man5/* %{buildroot}%{_mandir}/man5/
Expand Down Expand Up @@ -171,6 +172,7 @@ getent passwd lsc > /dev/null 2>&1 || \
%{_unitdir}/lsc-sync.service
%{_unitdir}/[email protected]
%{_unitdir}/lsc-sync.timer
%{_unitdir}/[email protected]
%{_libdir}/lsc/
%attr(-,lsc,lsc) %{lsc_logdir}
%attr(-,lsc,lsc) %{_sharedstatedir}/lsc/
Expand Down
1 change: 1 addition & 0 deletions src/main/assembly/dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
<include>lsc-sync.service</include>
<include>[email protected]</include>
<include>lsc-sync.timer</include>
<include>[email protected]</include>
</includes>
<outputDirectory>lib/systemd/system</outputDirectory>
<fileMode>0644</fileMode>
Expand Down

0 comments on commit 0f96344

Please sign in to comment.