Minor changes
This commit is contained in:
38
systemd.org
38
systemd.org
@@ -294,7 +294,7 @@ Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/vdirsyncer --verbosity "ERROR" sync
|
||||
ExecStart=/home/thomas/.local/bin/vdirsyncer --verbosity "ERROR" sync
|
||||
Type=oneshot
|
||||
#+end_src
|
||||
|
||||
@@ -377,3 +377,39 @@ Restart=on-failure
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
#+end_src
|
||||
|
||||
* =trash-empty= - Empty the trash for files older than 30 days
|
||||
** Service
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/trash-empty.service
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
[Unit]
|
||||
Description=Empty the trash for files older than 30 days
|
||||
Documentation=https://github.com/andreafrancia/trash-cli
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/thomas/.local/bin/trash-empty 30
|
||||
Type=oneshot
|
||||
#+end_src
|
||||
|
||||
** Timer
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/systemd/user/trash-empty.timer
|
||||
:header-args+: :comments both :mkdirp yes
|
||||
:END:
|
||||
|
||||
#+begin_src conf
|
||||
[Unit]
|
||||
Description=Empty trash
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 16:00:00
|
||||
Persistent=true
|
||||
Unit=trash-empty
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
#+end_src
|
||||
|
||||
Reference in New Issue
Block a user