Commit 12816f0f authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Store pid and socket file in /run and log in /var/log

parent f1d4fda6
...@@ -2,6 +2,9 @@ all: supervisord-service ...@@ -2,6 +2,9 @@ all: supervisord-service
pip3 install supervisor pip3 install supervisor
echo_supervisord_conf > /etc/supervisord.conf echo_supervisord_conf > /etc/supervisord.conf
install -v -m755 -d /etc/supervisord.d install -v -m755 -d /etc/supervisord.d
sed -i "s/^file=\/tmp/file=\/run/" /etc/supervisord.conf
sed -i "s/^logfile=\/tmp/logfile=\/var\/log/" /etc/supervisord.conf
sed -i "s/^pidfile=\/tmp/pidfile=\/run/" /etc/supervisord.conf
echo "[include]" >> /etc/supervisord.conf echo "[include]" >> /etc/supervisord.conf
echo "files = /etc/supervisord.d/*.conf" >> /etc/supervisord.conf echo "files = /etc/supervisord.d/*.conf" >> /etc/supervisord.conf
@echo "$$SUPERVISORD_SERVICE" > /lib/systemd/system/supervisord.service @echo "$$SUPERVISORD_SERVICE" > /lib/systemd/system/supervisord.service
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment