Update demo units, change font size
This commit is contained in:
		
							parent
							
								
									d2e97f4042
								
							
						
					
					
						commit
						1eb2797d03
					
				
					 9 changed files with 21 additions and 10 deletions
				
			
		| 
						 | 
					@ -5,4 +5,3 @@ Before=slices.target
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Slice]
 | 
					[Slice]
 | 
				
			||||||
CPUQuota=10%
 | 
					CPUQuota=10%
 | 
				
			||||||
MemoryLimit=1G
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										6
									
								
								demo/demo-path.path
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								demo/demo-path.path
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Demonstrate systemd path units
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Path]
 | 
				
			||||||
 | 
					DirectoryNotEmpty=/tmp/hackeriet
 | 
				
			||||||
 | 
					Unit=demo.service
 | 
				
			||||||
							
								
								
									
										6
									
								
								demo/demo-stress.service
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								demo/demo-stress.service
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Stress test CPU
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					Slice=demo.slice
 | 
				
			||||||
 | 
					ExecStart=/usr/bin/stress -c 5
 | 
				
			||||||
| 
						 | 
					@ -1,6 +0,0 @@
 | 
				
			||||||
[Unit]
 | 
					 | 
				
			||||||
Description=Demo unit for systemd timers
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
[Service]
 | 
					 | 
				
			||||||
Type=oneshot
 | 
					 | 
				
			||||||
ExecStart=/usr/bin/echo "Systemd timer fired! Hello Hackeriet."
 | 
					 | 
				
			||||||
| 
						 | 
					@ -5,7 +5,7 @@ Description=Demonstrate systemd timers
 | 
				
			||||||
OnActiveSec=2
 | 
					OnActiveSec=2
 | 
				
			||||||
OnUnitActiveSec=5
 | 
					OnUnitActiveSec=5
 | 
				
			||||||
AccuracySec=5
 | 
					AccuracySec=5
 | 
				
			||||||
 | 
					Unit=demo.service
 | 
				
			||||||
# OnCalendar=Thu,Fri 2016-*-1,5 11:12:13
 | 
					# OnCalendar=Thu,Fri 2016-*-1,5 11:12:13
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Install]
 | 
					[Install]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										6
									
								
								demo/demo.service
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								demo/demo.service
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,6 @@
 | 
				
			||||||
 | 
					[Unit]
 | 
				
			||||||
 | 
					Description=Demo unit for systemd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Service]
 | 
				
			||||||
 | 
					Type=oneshot
 | 
				
			||||||
 | 
					ExecStart=/usr/bin/echo "Systemd unit activated. Hello Hackeriet."
 | 
				
			||||||
| 
						 | 
					@ -82,4 +82,4 @@ Another thing is that services start depending on systemd when they shouldn't, a
 | 
				
			||||||
Despite criticism, systemd was adopted rapidly by large portions of the Linux
 | 
					Despite criticism, systemd was adopted rapidly by large portions of the Linux
 | 
				
			||||||
Initially in RedHat, because Poettering and co work there and it was clear from the beginning that it would be there
 | 
					Initially in RedHat, because Poettering and co work there and it was clear from the beginning that it would be there
 | 
				
			||||||
ArchLinux (which I'm using) and a few others followed suit quite quickly
 | 
					ArchLinux (which I'm using) and a few others followed suit quite quickly
 | 
				
			||||||
Eventually, the big Debian init system discussion - after a lot of flaming - led to Debian adopting it as well, which had a ripple effect for related distros such as Ubuntu which abandoned upstart for it.
 | 
					Eventually, the big Debian init system discussion - after a lot of flaming - led to Debian adopting it as well, which had a ripple effect for related distros such as Ubuntu which abandoned upstart for it.
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
\documentclass[14pt]{beamer}
 | 
					\documentclass[12pt]{beamer}
 | 
				
			||||||
\usetheme{metropolis}
 | 
					\usetheme{metropolis}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\newenvironment{code}{\ttfamily}{\par}
 | 
					\newenvironment{code}{\ttfamily}{\par}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue