We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4b4a79 + d0db62a commit f500d6aCopy full SHA for f500d6a
1 file changed
lib/apache
@@ -238,7 +238,13 @@ function write_uwsgi_config {
238
# create a home for the sockets; note don't use /tmp -- apache has
239
# a private view of it on some platforms.
240
local socket_dir='/var/run/uwsgi'
241
- sudo install -d -o $STACK_USER -m 755 $socket_dir
+
242
+ # /var/run will be empty on ubuntu after reboot, so we can use systemd-temptiles
243
+ # to automatically create $socket_dir.
244
+ sudo mkdir -p /etc/tmpfiles.d/
245
+ echo "d $socket_dir 0755 $STACK_USER root" | sudo tee /etc/tmpfiles.d/uwsgi.conf
246
+ sudo systemd-tmpfiles --create /etc/tmpfiles.d/uwsgi.conf
247
248
local socket="$socket_dir/${name}.socket"
249
250
# always cleanup given that we are using iniset here
0 commit comments