Skip to content

Commit

Permalink
systemd units: specify RuntimeDirectory.
Browse files Browse the repository at this point in the history
The RuntimeDirectory will create /var/run/openresty folder during start of the service.
  • Loading branch information
stokito authored Sep 6, 2024
1 parent 1d1d001 commit 23b58a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions deb/openresty/debian/openresty.service
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ ExecStart=/usr/local/openresty/nginx/sbin/nginx -g 'daemon on; master_process on
ExecStartPost=/bin/sleep 1
ExecReload=/usr/local/openresty/nginx/sbin/nginx -g 'daemon on; master_process on;' -s reload
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /usr/local/openresty/nginx/logs/nginx.pid
RuntimeDirectory=openresty
TimeoutStopSec=5
KillMode=mixed

Expand Down
1 change: 1 addition & 0 deletions rpm/SOURCES/openresty.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ExecStart=/usr/local/openresty/nginx/sbin/nginx
ExecStartPost=/bin/sleep 1
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
RuntimeDirectory=openresty
PrivateTmp=true

[Install]
Expand Down

0 comments on commit 23b58a2

Please sign in to comment.