[Unit] Description=Small service that creates a directory After=syslog.target network.target [Service] Environment=FLASK_CONFIG=production Environment=FLASK_APP=dircreate User=dircreate WorkingDirectory=/opt/dircreate ExecStart=/opt/createdir/venv/bin/gunicorn -b localhost:5000 "dircreate:create_app()" Restart=always [Install] WantedBy=multi-user.target