36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
# Start app service
|
|
sudo systemctl start printio
|
|
sudo systemctl stop printio
|
|
sudo systemctl enable printio
|
|
sudo ln -s /home/orangepi/printio/systemd/printio.service /etc/systemd/system/printio.service
|
|
|
|
|
|
#Start OverlayFS Mount service
|
|
sudo systemctl enable overlayfs_mount
|
|
sudo ln -s /home/orangepi/printio/systemd/overlayfs_mount.service /etc/systemd/system/overlayfs_mount.service
|
|
|
|
|
|
|
|
# Testing command
|
|
PYTHONPATH=/home/orangepi/printio/src /home/orangepi/printio/.venv/bin/gunicorn --workers 1 --bind unix:/home/orangepi/printio/src/flaskapp.sock -m 007 wsgi:app
|
|
|
|
|
|
|
|
sudo ln -s /home/orangepi/printio/systemd/printio.service /etc/systemd/system/printio.service
|
|
sudo ln -s /home/orangepi/printio/systemd/overlayfs_mount.service /etc/systemd/system/overlayfs_mount.service
|
|
sudo systemctl enable printio
|
|
sudo systemctl enable overlayfs_mount
|
|
|
|
|
|
# Stop Overlay to make system changes
|
|
sudo bash /home/orangepi/printio/systemd/bash/overlayfs_unmount.sh
|
|
|
|
|
|
|
|
#socket permissions
|
|
#sudo chmod 775 /home/orangepi/printio
|
|
sudo chown www-data:www-data /home/orangepi/printio/src/flaskapp.sock
|
|
sudo chmod 660 /home/orangepi/printio/src/flaskapp.sock
|
|
sudo chmod +x /home/orangepi/
|
|
sudo chmod +x /home/orangepi/printio/
|
|
sudo chmod +x /home/orangepi/printio/src/ |