Skip to content

Commit

Permalink
Provide systemd timer version
Browse files Browse the repository at this point in the history
* Complete cron feature with systemd version
  • Loading branch information
camlafit committed Aug 20, 2024
1 parent 44085df commit 4c92d53
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@

%:
dh $@

override_dh_installsystemd:
dh_installsystemd --name=screen-auto-start screen-auto-start.service --no-start
dh_installsystemd --name=screen-auto-start screen-auto-start.timer
dh_installsystemd --name=screen-save-all screen-save-all.service --no-start
dh_installsystemd --name=screen-save-all screen-save-all.timer
8 changes: 8 additions & 0 deletions debian/screen-auto-start.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Auto start all saved session

[Timer]
OnBootSec=1min

[Install]
WantedBy=timers.target
7 changes: 7 additions & 0 deletions debian/screen-auto-start.unit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Unit]
Description=Auto start all saved screen session

[Service]
Type=oneshot
ExecStart=/usr/bin/screen-auto-start
User=root
8 changes: 8 additions & 0 deletions debian/screen-save-all.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Save all 5' minutes all screen session

[Timer]
OnCalendar=*:0/5

[Install]
WantedBy=timers.target
7 changes: 7 additions & 0 deletions debian/screen-save-all.unit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Unit]
Description=Save all screen session

[Service]
Type=oneshot
ExecStart=/usr/bin/screen-save-all-sessions -d
User=root

0 comments on commit 4c92d53

Please sign in to comment.