Some custom systemd unit files
This commit is contained in:
parent
d21305feca
commit
6591e60b3e
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Emacs Daemon
|
||||
Requires=ssh-agent.service gpg-agent.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/emacs --no-site-file --daemon
|
||||
TimeoutStartSec=30
|
||||
TimeoutStopSec=30
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=git annex assistant in %I
|
||||
|
||||
[Service]
|
||||
CPUAccounting=true
|
||||
CPUQuota=20%
|
||||
WorkingDirectory=%I
|
||||
ExecStart=/usr/bin/git-annex assistant --foreground
|
||||
RuntimeMaxSec=86400
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -0,0 +1,11 @@
|
|||
# https://babushk.in/posts/offlineimap-systemd.html
|
||||
|
||||
[Unit]
|
||||
Description=OfflineIMAP Quicksync
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment=DISPLAY=%I
|
||||
ExecStart=/usr/bin/offlineimap -u basic
|
||||
Restart=always
|
||||
RestartSec=3
|
|
@ -0,0 +1,8 @@
|
|||
# https://babushk.in/posts/offlineimap-systemd.html
|
||||
|
||||
[Unit]
|
||||
Description=OfflineIMAP Quicksync timer
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:*:0/30
|
||||
Unit=offlineimap@%I.service
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=SSH key agent
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
||||
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK -t 86400
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -0,0 +1,7 @@
|
|||
[Service]
|
||||
Environment=DISPLAY=%I
|
||||
ExecStart=/usr/bin/xautolock -time 5 -locker xtrlock
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=graphics.target
|
Loading…
Reference in New Issue