fix service
This commit is contained in:
		
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | |||||||
|  | */__pycache__ | ||||||
|  | __pycache__ | ||||||
| @@ -7,17 +7,20 @@ Type=forking | |||||||
| User=root | User=root | ||||||
| Group=root | Group=root | ||||||
| WorkingDirectory=/opt/logmon | WorkingDirectory=/opt/logmon | ||||||
|  | Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||||||
|  | Environment="PYTHONUNBUFFERED=1" | ||||||
|  |  | ||||||
| ExecStart=/usr/bin/python3 /opt/logmon/logmon.py -c /etc/logmon/config.ini | ExecStart=/usr/bin/python3 /opt/logmon/logmon.py -c /etc/logmon/config.ini | ||||||
| ExecReload=/bin/kill -HUP $MAINPID | ExecReload=/bin/kill -HUP $MAINPID | ||||||
| PIDFile=/var/run/logmon.pid | PIDFile=/var/run/logmon.pid | ||||||
| Restart=on-failure | Restart=on-failure | ||||||
| RestartSec=10s | RestartSec=10s | ||||||
|  | PrivateTmp=no | ||||||
| # Security hardening |  | ||||||
| PrivateTmp=yes |  | ||||||
| NoNewPrivileges=false | NoNewPrivileges=false | ||||||
| ProtectSystem=strict | ProtectSystem=false | ||||||
| ReadWritePaths=/var/log /var/run /etc/csf | ReadWritePaths=/etc/csf /var/lib/csf /var/log | ||||||
|  | TimeoutStartSec=60 | ||||||
|  | TimeoutStopSec=60 | ||||||
|  |  | ||||||
| [Install] | [Install] | ||||||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 root
					root