Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9252285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:54:25+00:00 2026-06-18T10:54:25+00:00

I have a Twisted application that involves auto-updates. To have it automatically restart after

  • 0

I have a Twisted application that involves auto-updates. To have it automatically restart after updating, I setup a post reactor shutdown event that respawns the application like so:

reactor.addSystemEventTrigger('after', 'shutdown', os.execv, executable, args)
reactor.callFromThread(reactor.stop)

This works fine on Windows, but on OS X the event never gets called. The logs show that the parameters are correct, and running os.execv with the same parameters outside of Twisted – os.execv('/usr/bin/open', ['/usr/bin/open', '-n', '/Applications/MyApp.app']) – works fine.

What could I be missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T10:54:26+00:00Added an answer on June 18, 2026 at 10:54 am

    It turns out the issue was with the execv call, not the Twisted event shutdown.. I changed the command to call my executable within the .app bundle instead of using open and got it working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small GTK python application that imports a package (Twisted) that may
I have a Twisted/PyQt application that (among other things) connects to a bunch of
I have to create a python (twisted) application that accepts connections from clients via
I have written a simple automation script for deploying and restarting my twisted application
I'm using twisted. I have my protocols set up so that, to send an
I want to have a twisted service (started via twistd) which listens to TCP/POST
So, I've got an application that uses Twisted + Stomper as a STOMP client
I inherited a project using the Twisted Python library. The application is terminating after
I have inherited a windows Python application that communicates with linux RabbitMQ. I need
I currently have a bash application that, among other things, uses cURL to upload

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.