| 
									
										
										
										
											2025-05-10 10:20:04 +02:00
										 |  |  | [Unit] | 
					
						
							| 
									
										
										
										
											2025-05-10 13:44:21 +02:00
										 |  |  | Description=Adjust MD1200/MD1220 fan speeds | 
					
						
							|  |  |  | After=multi-user.target | 
					
						
							| 
									
										
										
										
											2025-05-10 10:20:04 +02:00
										 |  |  | # Place in /etc/systemd/system/ | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  | [Service] | 
					
						
							|  |  |  | User=<CHANGE> | 
					
						
							|  |  |  | Group=<CHANGE> | 
					
						
							|  |  |  | Type=simple | 
					
						
							|  |  |  | Restart=on-failure | 
					
						
							|  |  |  | # EnvironmentFile=/etc/NetFlux/netflow.env | 
					
						
							|  |  |  | # User=myuser | 
					
						
							|  |  |  | WorkingDirectory=/dir/to/script/ | 
					
						
							| 
									
										
										
										
											2025-05-10 13:44:21 +02:00
										 |  |  | ExecStart=/dir/to/script'sVENV/venv/bin/python3 /dir/to/script/main.py --serve-in-foreground | 
					
						
							| 
									
										
										
										
											2025-05-10 10:20:04 +02:00
										 |  |  | #StandardInput=tty-force | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Log file will be create if it doesn't exist | 
					
						
							| 
									
										
										
										
											2025-05-10 13:44:21 +02:00
										 |  |  | StandardOutput=append:/var/log/MD1200FAN.py.log | 
					
						
							|  |  |  | StandardError=append:/var/log/MD1200FAN.py.errlog | 
					
						
							| 
									
										
										
										
											2025-05-10 10:20:04 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | # StandardOutput=syslog | 
					
						
							|  |  |  | # StandardError=syslog | 
					
						
							|  |  |  | # SyslogIdentifier=NetFlowInflux | 
					
						
							|  |  |  |   | 
					
						
							|  |  |  | [Install] | 
					
						
							|  |  |  | WantedBy=multi-user.target |