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
|
||||
Group=root
|
||||
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
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
PIDFile=/var/run/logmon.pid
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
|
||||
# Security hardening
|
||||
PrivateTmp=yes
|
||||
PrivateTmp=no
|
||||
NoNewPrivileges=false
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/var/log /var/run /etc/csf
|
||||
ProtectSystem=false
|
||||
ReadWritePaths=/etc/csf /var/lib/csf /var/log
|
||||
TimeoutStartSec=60
|
||||
TimeoutStopSec=60
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user