kolejne zmiany, dużo, zebrało się
This commit is contained in:
		
							
								
								
									
										11
									
								
								.config/systemd/user/crc-daemon.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								.config/systemd/user/crc-daemon.service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=CRC daemon
 | 
			
		||||
Requires=crc-http.socket
 | 
			
		||||
Requires=crc-vsock.socket
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
# This allows systemd to know when startup is not complete (for example, because of a preflight failure)
 | 
			
		||||
# daemon.SdNotify(false, daemon.SdNotifyReady) must be called before the startup is successful
 | 
			
		||||
Type=notify
 | 
			
		||||
ExecStart=/home/paramah/.crc/bin/crc daemon
 | 
			
		||||
							
								
								
									
										9
									
								
								.config/systemd/user/crc-http.socket
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.config/systemd/user/crc-http.socket
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=CRC HTTP socket
 | 
			
		||||
 | 
			
		||||
[Socket]
 | 
			
		||||
ListenStream=%h/.crc/crc-http.sock
 | 
			
		||||
Service=crc-daemon.service
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=default.target
 | 
			
		||||
							
								
								
									
										9
									
								
								.config/systemd/user/crc-vsock.socket
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								.config/systemd/user/crc-vsock.socket
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=CRC vsock socket
 | 
			
		||||
 | 
			
		||||
[Socket]
 | 
			
		||||
ListenStream=vsock::1024
 | 
			
		||||
Service=crc-daemon.service
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=default.target
 | 
			
		||||
							
								
								
									
										1
									
								
								.config/systemd/user/default.target.wants/crc-http.socket
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								.config/systemd/user/default.target.wants/crc-http.socket
									
									
									
									
									
										Symbolic link
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
/home/paramah/.config/systemd/user/crc-http.socket
 | 
			
		||||
							
								
								
									
										1
									
								
								.config/systemd/user/default.target.wants/crc-vsock.socket
									
									
									
									
									
										Symbolic link
									
								
							
							
						
						
									
										1
									
								
								.config/systemd/user/default.target.wants/crc-vsock.socket
									
									
									
									
									
										Symbolic link
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
/home/paramah/.config/systemd/user/crc-vsock.socket
 | 
			
		||||
@@ -0,0 +1 @@
 | 
			
		||||
/home/paramah/.config/systemd/user/gitwatch@.service
 | 
			
		||||
							
								
								
									
										10
									
								
								.config/systemd/user/gitwatch@.service
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								.config/systemd/user/gitwatch@.service
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Watch file or directory and git commit all changes. run with: systemctl --user --now enable gitwatch@$(systemd-escape -- "'-r url/to/repository' /path/to/folder").service
 | 
			
		||||
 | 
			
		||||
[Service]
 | 
			
		||||
Environment="SCRIPT_ARGS=%I"
 | 
			
		||||
ExecStart=/usr/bin/bash -c "/home/paramah/bin/gitwatch ${SCRIPT_ARGS}"
 | 
			
		||||
ExecStop=/bin/true
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
WantedBy=default.target
 | 
			
		||||
		Reference in New Issue
	
	Block a user