summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2022-11-02 09:10:32 -0700
committerMike Crute <mike@crute.us>2022-11-02 09:10:32 -0700
commit97148d3879d0c6de3290f6967711926da50d6852 (patch)
tree2c416616e4d9af5a8b8189a7b88c9d289a1335e0
parent31d4485bc2b05eb62425990002071486635e663b (diff)
downloaddotfiles-97148d3879d0c6de3290f6967711926da50d6852.tar.bz2
dotfiles-97148d3879d0c6de3290f6967711926da50d6852.tar.xz
dotfiles-97148d3879d0c6de3290f6967711926da50d6852.zip
Cleanup systemd services
-rw-r--r--.linux/dot_config/systemd/user/music-backup.service2
-rw-r--r--.linux/dot_config/systemd/user/system-backup.service2
-rw-r--r--.linux/dot_config/systemd/user/xscreensaver.service2
-rw-r--r--.linux/dot_config/systemd/user/xss-lock.service11
-rw-r--r--.linux/etc/systemd/system/ath11k-resume.service6
-rw-r--r--.linux/etc/systemd/system/ath11k-suspend.service6
-rw-r--r--.linux/etc/systemd/system/ax500-resume.service11
-rw-r--r--.linux/etc/systemd/system/ax500-suspend.service10
8 files changed, 37 insertions, 13 deletions
diff --git a/.linux/dot_config/systemd/user/music-backup.service b/.linux/dot_config/systemd/user/music-backup.service
index 7a83c15..07c37f7 100644
--- a/.linux/dot_config/systemd/user/music-backup.service
+++ b/.linux/dot_config/systemd/user/music-backup.service
@@ -3,9 +3,7 @@ Description=backup music with rsync
3 3
4[Service] 4[Service]
5Type=oneshot 5Type=oneshot
6
7ExecCondition=ping -q -c1 -W1 -w1 nas.sea1.crute.me 6ExecCondition=ping -q -c1 -W1 -w1 nas.sea1.crute.me
8
9ExecStart=rsync -rltvp -e "ssh -i /home/mcrute/.ssh/id_rsa.musicbackup -l mcrute" --delete-excluded --delete-during --exclude '/Swinsian/Artwork/' /home/mcrute/Music/Swinsian nas.sea1.crute.me:/mnt/data/Mike/Music/ 7ExecStart=rsync -rltvp -e "ssh -i /home/mcrute/.ssh/id_rsa.musicbackup -l mcrute" --delete-excluded --delete-during --exclude '/Swinsian/Artwork/' /home/mcrute/Music/Swinsian nas.sea1.crute.me:/mnt/data/Mike/Music/
10 8
11[Install] 9[Install]
diff --git a/.linux/dot_config/systemd/user/system-backup.service b/.linux/dot_config/systemd/user/system-backup.service
index 61ed2de..8a3a8ac 100644
--- a/.linux/dot_config/systemd/user/system-backup.service
+++ b/.linux/dot_config/systemd/user/system-backup.service
@@ -6,9 +6,7 @@ ConditionPathExists=%h/.backup-filter
6 6
7[Service] 7[Service]
8Type=oneshot 8Type=oneshot
9
10ExecCondition=ping -q -c1 -W1 -w1 nas.sea1.crute.me 9ExecCondition=ping -q -c1 -W1 -w1 nas.sea1.crute.me
11
12Environment="RESTIC_REPOSITORY=rest:http://nas.sea1.crute.me:6275/mcrute-devices" 10Environment="RESTIC_REPOSITORY=rest:http://nas.sea1.crute.me:6275/mcrute-devices"
13Environment="RESTIC_PASSWORD_FILE=%h/.restic-key" 11Environment="RESTIC_PASSWORD_FILE=%h/.restic-key"
14ExecStart=restic backup --exclude-file %h/.backup-filter %h 12ExecStart=restic backup --exclude-file %h/.backup-filter %h
diff --git a/.linux/dot_config/systemd/user/xscreensaver.service b/.linux/dot_config/systemd/user/xscreensaver.service
index 88fe661..e602a50 100644
--- a/.linux/dot_config/systemd/user/xscreensaver.service
+++ b/.linux/dot_config/systemd/user/xscreensaver.service
@@ -5,7 +5,7 @@ PartOf=graphical-session.target
5[Service] 5[Service]
6Type=simple 6Type=simple
7EnvironmentFile=-%h/.config/systemd/graphical.env 7EnvironmentFile=-%h/.config/systemd/graphical.env
8ExecStart=/usr/bin/xscreensaver 8ExecStart=/usr/bin/xscreensaver --no-splash
9 9
10[Install] 10[Install]
11WantedBy=graphical-session.target 11WantedBy=graphical-session.target
diff --git a/.linux/dot_config/systemd/user/xss-lock.service b/.linux/dot_config/systemd/user/xss-lock.service
new file mode 100644
index 0000000..34d1ddc
--- /dev/null
+++ b/.linux/dot_config/systemd/user/xss-lock.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=xss-lock glue for systemd and xscreensaver
3PartOf=graphical-session.target
4
5[Service]
6Type=simple
7EnvironmentFile=-%h/.config/systemd/graphical.env
8ExecStart=/usr/bin/xss-lock -- xscreensaver-command -lock
9
10[Install]
11WantedBy=graphical-session.target
diff --git a/.linux/etc/systemd/system/ath11k-resume.service b/.linux/etc/systemd/system/ath11k-resume.service
index 0b32151..ca4afd5 100644
--- a/.linux/etc/systemd/system/ath11k-resume.service
+++ b/.linux/etc/systemd/system/ath11k-resume.service
@@ -1,7 +1,6 @@
1[Unit] 1[Unit]
2Description=Resume: modprobe ath11k_pci 2Description=Resume: modprobe ath11k_pci
3After=suspend.target 3After=suspend.target hibernate.target hybrid-sleep.target
4After=hibernate.target
5 4
6[Service] 5[Service]
7Type=oneshot 6Type=oneshot
@@ -9,5 +8,4 @@ ExecStartPre=/usr/bin/sleep 3
9ExecStart=/usr/sbin/modprobe ath11k_pci 8ExecStart=/usr/sbin/modprobe ath11k_pci
10 9
11[Install] 10[Install]
12WantedBy=suspend.target 11WantedBy=suspend.target hibernate.target hybrid-sleep.target
13WantedBy=hibernate.target
diff --git a/.linux/etc/systemd/system/ath11k-suspend.service b/.linux/etc/systemd/system/ath11k-suspend.service
index adf0957..3f69497 100644
--- a/.linux/etc/systemd/system/ath11k-suspend.service
+++ b/.linux/etc/systemd/system/ath11k-suspend.service
@@ -1,12 +1,10 @@
1[Unit] 1[Unit]
2Description=Suspend: rmmod ath11k_pci 2Description=Suspend: rmmod ath11k_pci
3Before=sleep.target 3Before=sleep.target hibernate.target hybrid-sleep.target
4Before=hibernate.target
5 4
6[Service] 5[Service]
7Type=oneshot 6Type=oneshot
8ExecStart=/usr/sbin/rmmod ath11k_pci 7ExecStart=/usr/sbin/rmmod ath11k_pci
9 8
10[Install] 9[Install]
11WantedBy=sleep.target 10WantedBy=sleep.target hibernate.target hybrid-sleep.target
12WantedBy=hibernate.target
diff --git a/.linux/etc/systemd/system/ax500-resume.service b/.linux/etc/systemd/system/ax500-resume.service
new file mode 100644
index 0000000..5697f2a
--- /dev/null
+++ b/.linux/etc/systemd/system/ax500-resume.service
@@ -0,0 +1,11 @@
1[Unit]
2Description=Resume: modprobe hci_uart
3After=suspend.target hibernate.target hybrid-sleep.target
4
5[Service]
6Type=oneshot
7ExecStartPre=/usr/bin/sleep 3
8ExecStart=/usr/sbin/modprobe hci_uart
9
10[Install]
11WantedBy=suspend.target hibernate.target hybrid-sleep.target
diff --git a/.linux/etc/systemd/system/ax500-suspend.service b/.linux/etc/systemd/system/ax500-suspend.service
new file mode 100644
index 0000000..a1e5ed3
--- /dev/null
+++ b/.linux/etc/systemd/system/ax500-suspend.service
@@ -0,0 +1,10 @@
1[Unit]
2Description=Suspend: rmmod hci_uart
3Before=sleep.target hibernate.target hybrid-sleep.target
4
5[Service]
6Type=oneshot
7ExecStart=/usr/sbin/rmmod hci_uart
8
9[Install]
10WantedBy=sleep.target hibernate.target hybrid-sleep.target