Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to auto start servers? #16

Closed
jreiners opened this issue Jun 3, 2019 · 7 comments
Closed

Is there a way to auto start servers? #16

jreiners opened this issue Jun 3, 2019 · 7 comments
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@jreiners
Copy link

jreiners commented Jun 3, 2019

Great app, is there an environmental variable or something to have it auto start a server on launch?

This is exactly what I was looking for, re: remote systems management behind firewalls. (we own the equipment).

Just might need to learn some go :)

@jreiners jreiners changed the title Add a way to auto start servers Is there a way to auto start servers? Jun 3, 2019
@WangYihang WangYihang self-assigned this Jun 5, 2019
@WangYihang WangYihang added help wanted Extra attention is needed question Further information is requested labels Jun 5, 2019
@WangYihang
Copy link
Owner

You may need this:

  1. Write a bash script like this:
#!/bin/bash

(echo 'Run 0.0.0.0 8080\n'; cat) | ./Platypus
  1. Then make this script executable
  2. Add it to start-up programs according to the following article.

https://timleland.com/how-to-run-a-linux-program-on-startup/

@jreiners
Copy link
Author

jreiners commented Jun 6, 2019

Thanks WangYihang.

I already had the service working, just needed to figure out how to run the server, I'll give it a try in a bit, but that should take care of it!

@WangYihang
Copy link
Owner

Just put all Platypus commands in a text file, then redirect the file into the process. Or you might need to write a bash script to wrap the program.

@jreiners
Copy link
Author

jreiners commented Jun 7, 2019 via email

@WangYihang
Copy link
Owner

I will consider upgrading platypus to a system service.
There are a lot of tasks to do.
It requires front-end and back-end separation and builds platypus into system services.

@WangYihang
Copy link
Owner

Close since the original problem is solved.

@WangYihang
Copy link
Owner

In version v1.2.7, this problem was solved more graceful. please check it out.
eg: Demonstrating video on asciinema.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants