systemd: Add timers and services to keep git repos up-to-date
Yes, systemd. In my user repo. It's awesome.
This commit is contained in:
		
							
								
								
									
										9
									
								
								.config/systemd/user/dot-fetch.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.config/systemd/user/dot-fetch.service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					# vim:ft=systemd:
 | 
				
			||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Dotfile fetch service
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					ExecStart=git --git-dir=%h/.dotfiles/ --work-tree=%h fetch
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=default.target
 | 
				
			||||||
							
								
								
									
										11
									
								
								.config/systemd/user/dot-fetch.timer
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.config/systemd/user/dot-fetch.timer
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					# vim:ft=systemd:
 | 
				
			||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Dot fetch timer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Timer]
 | 
				
			||||||
 | 
					Persistent=true
 | 
				
			||||||
 | 
					OnBootSec=15min
 | 
				
			||||||
 | 
					OnCalendar=*-*-* 22:00:00
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=default.target
 | 
				
			||||||
							
								
								
									
										9
									
								
								.config/systemd/user/proj-fetch.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.config/systemd/user/proj-fetch.service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					# vim:ft=systemd:
 | 
				
			||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Project fetch service
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					ExecStart=find %h/Projects -type d -iname .git -execdir git fetch \;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=default.target
 | 
				
			||||||
							
								
								
									
										11
									
								
								.config/systemd/user/proj-fetch.timer
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.config/systemd/user/proj-fetch.timer
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					# vim:ft=systemd:
 | 
				
			||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Project fetch timer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Timer]
 | 
				
			||||||
 | 
					Persistent=true
 | 
				
			||||||
 | 
					OnBootSec=15min
 | 
				
			||||||
 | 
					OnCalendar=*-*-* 23:00:00
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Install]
 | 
				
			||||||
 | 
					WantedBy=default.target
 | 
				
			||||||
		Reference in New Issue
	
	Block a user