зеркало из https://github.com/mozilla/MozDef.git
Updating pidfile location for mozdefbot.
This commit is contained in:
Родитель
26231a14fa
Коммит
55d82e4204
|
@ -13,6 +13,6 @@ procname-master = [m]
|
||||||
procname-prefix = [mozdefbot]
|
procname-prefix = [mozdefbot]
|
||||||
master-fifo = /opt/mozdef/envs/mozdef/bot/mozdefbot.fifo
|
master-fifo = /opt/mozdef/envs/mozdef/bot/mozdefbot.fifo
|
||||||
never-swap
|
never-swap
|
||||||
pidfile= /opt/mozdef/envs/mozdef/bot/mozdefbot.pid
|
pidfile = /var/run/mozdefbot/mozdefbot.pid
|
||||||
vacuum = true
|
vacuum = true
|
||||||
enable-threads
|
enable-threads
|
||||||
|
|
|
@ -4,6 +4,9 @@ After=syslog.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
# Requires systemd version 211 or newer
|
# Requires systemd version 211 or newer
|
||||||
|
PermissionsStartOnly=true
|
||||||
|
ExecStartPre=-/usr/bin/mkdir /var/run/mozdefbot
|
||||||
|
ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdefbot/
|
||||||
User=mozdef
|
User=mozdef
|
||||||
Group=mozdef
|
Group=mozdef
|
||||||
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/bot; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini mozdefbot.ini'
|
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/bot; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini mozdefbot.ini'
|
||||||
|
|
Загрузка…
Ссылка в новой задаче