Skip to main content

All Questions

Tagged with
0 votes
0 answers
222 views

Iterating over mount points on startup with python script executed as a service with systemd

I want to iterate over mounting points with a Python script on a system startup. The script works fine on the fully booted system (even when called as sudo systemctl start launcher.service) but fails ...
Tony's user avatar
  • 1
0 votes
1 answer
22 views

Flask Systemd Service not able open video file under s3 bucket mounted folder

My flask app is running as service but it is not able to read video file from s3bucket mounted folder. OpenCV does not throw error when it fails to load but returns 0 frame array. So we understand ...
nerdicsapo's user avatar
4 votes
1 answer
515 views

systemd vs normal shell execution?

I am trying to have a systemd service run a script at boot, and every x minutes. One of the steps in the script is to set up a VPN connection; this steps fails when run as a systemd service. The ...
Davy's user avatar
  • 41
0 votes
1 answer
3k views

Systemd - Python script - Main process exited, code=exited, status=1/FAILURE

Hi everyone the situation is the following: I am connetected to an ubuntu-based EC2 machine of AWS ( and I am currently working on Ubuntu 18.04). I can manage files inside the machine and run scripts ...
etnamaid's user avatar
1 vote
1 answer
3k views

running python flask app with virtual environment (VENV) on VPS in background

I am trying to run a flask app on my VPS in production environment. The problem is that I can't alter any of the VPS packages, and it uses a python3.5 interpreter as default. The version that is ...
Kaki Master Of Time's user avatar
4 votes
2 answers
12k views

How do I analyze journalctl logs outside of journalctl?

I need to collect some stats from my systemd log files, like how many users pass in a certain query string parameter to my service. I know I can view this information in journalctl but I can't figure ...
user_78361084's user avatar
17 votes
2 answers
36k views

How to automatically create a runtime folder with a systemd service or tmpfiles.d?

I'm trying to create a runtime folder at /run/gunicorn for some Gunicorn socket / PID files, which are for a Django application. I can get everything working if I manually create directories. However, ...
geonaut's user avatar
  • 421
2 votes
1 answer
2k views

Creating a systemd service for Flask via nginx

I'm running a Flask application on a server via nginx. I want to create a systemd file and here's what I have: [Unit] Description=my123 website After=syslog.target Requires=postgresql.service [...
ako25's user avatar
  • 123