app-metrics/postfix_exporter: Add ebuild with systemd unit file.
Package-Manager: Portage-2.3.76, Repoman-2.3.16
This commit is contained in:
		
							parent
							
								
									280322e41a
								
							
						
					
					
						commit
						d19f584e7c
					
				
					 8 changed files with 136 additions and 0 deletions
				
			
		
							
								
								
									
										19
									
								
								app-metrics/postfix_exporter/files/postfix_exporter.initd
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								app-metrics/postfix_exporter/files/postfix_exporter.initd
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,19 @@ | |||
| #!/sbin/openrc-run | ||||
| # Copyright 2016-2019 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
| 
 | ||||
| description="Prometheus Exporter for Postfix Metrics" | ||||
| pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} | ||||
| user=${user:-${RC_SVCNAME}} | ||||
| group=${group:-${RC_SVCNAME}} | ||||
| 
 | ||||
| command="/usr/bin/postfix_exporter" | ||||
| command_args="${command_args:-}" | ||||
| command_background="true" | ||||
| start_stop_daemon_args="--user ${user} --group ${group} \ | ||||
| 	--stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ | ||||
| 	--stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" | ||||
| 
 | ||||
| depend() { | ||||
| 	after net | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue