diff --git a/systemdfiles/consumer/mozdefmqwfxa.service b/systemdfiles/consumer/mozdefmqwfxa.service index 8f48ea7a..08d5263c 100644 --- a/systemdfiles/consumer/mozdefmqwfxa.service +++ b/systemdfiles/consumer/mozdefmqwfxa.service @@ -4,6 +4,9 @@ After=syslog.target [Service] # Requires systemd version 211 or newer +PermisssionsStartOnly=true +ExecStartPre=-/usr/bin/mkdir /var/run/mozdefmqwFxa +ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdefmqwFxa User=mozdef Group=mozdef ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/mq; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini mqwFxa.ini' diff --git a/systemdfiles/consumer/mozdefmqwinfosecsqs.service b/systemdfiles/consumer/mozdefmqwinfosecsqs.service index 57021498..68e1b4a8 100644 --- a/systemdfiles/consumer/mozdefmqwinfosecsqs.service +++ b/systemdfiles/consumer/mozdefmqwinfosecsqs.service @@ -4,6 +4,9 @@ After=syslog.target [Service] # Requires systemd version 211 or newer +PermissionsStartOnly=true +ExecStartPre=-/usr/bin/mkdir /var/run/mozdefmqwInfosecSQS +ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdefmqwInfosecSQS User=mozdef Group=mozdef ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/mq; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini mqwInfosecSQS.ini' diff --git a/systemdfiles/consumer/mozdefmqwnubis.service b/systemdfiles/consumer/mozdefmqwnubis.service index 060d75a9..704962c0 100644 --- a/systemdfiles/consumer/mozdefmqwnubis.service +++ b/systemdfiles/consumer/mozdefmqwnubis.service @@ -4,6 +4,9 @@ After=syslog.target [Service] # Requires systemd version 211 or newer +PermissionsStartOnly=true +ExecStartPre=-/usr/bin/mkdir /var/run/mozdefmqwNubis +ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdefmqwNubis User=mozdef Group=mozdef ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/mq; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini mqwNubis.ini'